﻿body.auth-page {
    background: linear-gradient(135deg, #07417D, #80A69B);
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ====== AUTH FORM STYLES ====== */
.container {
    display: flex;
    width: 900px;
    height: 550px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 68px;
}

.form-section {
    width: 50%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-box h2 {
    color: #07417D;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-box p {
    color: #6F7070;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-field {
    width: 92%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

    .input-field:focus {
        border-color: #07417D;
        box-shadow: 0 0 5px rgba(7, 65, 125, 0.2);
    }

.btn-signup {
    width: 93%;
    background-color: #07417D;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.3s;
}

    .btn-signup:hover {
        background-color: #0050A0;
    }

.validator {
    display: inline; /* keep it inline with the field */
    font-size: 0.85rem; /* slightly smaller than default text */
    color: red; /* your preferred color */
    margin-left: 5px; /* space from the input */
    line-height: 1.2; /* reduce vertical spacing */
}

.signin-link {
    margin-top: 20px;
    font-size: 14px;
    color: #6F7070;
    text-align: center;
}

    .signin-link a {
        color: #07417D;
        text-decoration: none;
        font-weight: 500;
    }

        .signin-link a:hover {
            text-decoration: underline;
        }

/* Image section */
.image-section {
    width: 65%;
    background-color: #07417D;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Overlay box */
.overlay-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: start;
    color: #fff;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

    .overlay-box h2 {
        font-size: 25px;
        margin-bottom: 7px;
    }

    .overlay-box p {
        font-size: 16px;
        line-height: 1.5;
    }

/* Forgot password link */
.forgot-password {
    text-align: left;
    margin-bottom: 15px;
}

    .forgot-password a {
        color: #07417D;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #004080;
            text-decoration: underline;
        }

/* ====== LANDING PAGE ====== */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}


.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand); /* This color might be used for other elements in .logo */
    letter-spacing: 1px;
}

    .logo img {
        margin-top: 19px;
        margin-right: -18px;
        height: 100px; /* Keep your desired height */
        width: 100px; /* Keep your desired width */
    }


.logo-text .hayat {
    /* Set Hayat to Blue */
    color: var(--brand);
}

.logo-text .finder {
    /* Set Finder to Green */
    color: green;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--brand);
        font-weight: 500;
        transition: color 0.2s ease;
        padding: 8px 6px;
    }

        .nav-links a:hover {
            color: var(--brand-2);
        }

.auth-links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

    .auth-links a {
        text-decoration: none;
        color: var(--brand);
        transition: color .2s;
    }

        .auth-links a:hover {
            color: var(--brand-2);
        }

    .auth-links .sep {
        color: #6F7070;
        padding: 0 6px;
    }


/*   HERO SECTION */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 120px 6% 80px;
}
    /*
Background image layer*/
    .hero .hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        /*    background: url('images/hero1.png') ;*/
        background: rgb(248, 250, 250);
        background-size: cover;
        background-position: center;
        transform-origin: center;
        filter: saturate(1.05) contrast(1.02);
        animation: bg-zoom 24s linear infinite;
    }
    /*     Glowing background overlay 
*/
    .hero .hero-glow {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: radial-gradient(600px 350px at 12% 22%, rgba(15,185,161,0.12), transparent 8%), radial-gradient(520px 300px at 88% 78%, rgba(0,167,255,0.10), transparent 9%), linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
        mix-blend-mode: screen;
        animation: glow-shift 9s ease-in-out infinite alternate;
        filter: blur(20px);
    }
    /* Content box on 58 56 left side */

    .hero .hero-content {
        position: relative;
        z-index: 6;
        width: min(60ch, 70%);
        background: linear-gradient(180deg, rgba(255,255,255,var(--glass-alpha)), rgba(255,255,255,0.02));
        border-radius: var(--radius);
        border: 1px solid rgba(255,255,255,0.22);
        padding: 36px;
        box-shadow: var(--shadow-strong);
        backdrop-filter: blur(10px) saturate(1.08);
        animation: content-entrance 820ms cubic-bezier(.2,.9,.3,1) both;
    }
    /* Heading + text */

    .hero .hero-title {
        font-size: 2.6rem;
        margin: 0 0 12px;
        color: #01303b;
        font-weight: 800;
        letter-spacing: 0.2px;
    }

    .hero .hero-sub {
        color: #044b52;
        margin-bottom: 20px;
        font-size: 1.05rem;
        line-height: 1.6;
    }
/* Button   var(--sea-1)  var(--sea-2)*/

.btn-hero {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(90deg, #0fb9a1,#07417D );
    box-shadow: 0 12px 36px rgba(6,20,30,0.12), 0 0 36px rgba(0,167,255,0.12);
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

    .btn-hero:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 30px 90px rgba(10,120,140,0.18), 0 0 90px rgba(0,167,255,0.15);
    }
/* Floating right-side image */

.hero-img {
    position: relative;
    z-index: 6;
    width: 440px;
    max-width: 45%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform-style: preserve-3d;
    animation: float-y var(--float-time) ease-in-out infinite;
}

    .hero-img:hover {
        transform: perspective(900px) translateZ(14px) rotateX(1.1deg) rotateY(-4deg) scale(1.03);
        box-shadow: 0 38px 120px rgba(3,20,30,0.18);
    }
/* ------------------ HERO IMAGE STACK ------------------ */

.hero-image-stack {
    position: relative;
    z-index: 6;
    width: 480px;
    max-width: 45%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.stack-img {
    position: absolute;
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(3, 20, 30, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.6s;
    animation: float-stack 8s ease-in-out infinite;
}
/* Each image unique position + rotation */

.img1 {
    top: 10%;
    left: 30%;
    transform: rotate(-6deg) translateZ(20px);
}

.img2 {
    top: 30%;
    left: 55%;
    transform: rotate(8deg) translateZ(40px);
}

.img3 {
    top: 55%;
    left: 25%;
    transform: rotate(-12deg) translateZ(60px);
}

.img4 {
    top: 70%;
    left: 50%;
    transform: rotate(5deg) translateZ(20px);
}

.stack-img:hover {
    transform: scale(1.08) rotate(0deg) translateZ(80px);
    z-index: 99;
    box-shadow: 0 35px 120px rgba(0, 167, 255, 0.25);
}
/* Floating animation for depth */

@keyframes float-stack {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}
/* Responsive layout */

/*@media (max-width: 1024px) {
    .hero-image-stack {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-top: 40px;
    }

    .stack-img {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 20px;
        margin-bottom: 20px;
        animation: none;
    }
}*/
/* Background animations */

/*@keyframes bg-zoom {
    0% {
        transform: scale(1);
        background-position: 50% 50%;
    }

    50% {
        transform: scale(1.03);
        background-position: 52% 48%;
    }

    100% {
        transform: scale(1);
        background-position: 50% 50%;
    }
}

@keyframes glow-shift {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes content-entrance {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float-y {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}*/
/* Responsive behavior */

/*@media (max-width: 1024px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 5% 60px;
    }

        .hero .hero-content {
            width: 100%;
            max-width: 720px;
        }

    .hero-img {
        width: 360px;
        max-width: 90%;
    }
}*/
/* === ABOUT SECTION === */

.info-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: #f8fafa;
}

.info-text {
    width: 50%;
    animation: fadeInLeft 1.5s ease;
}

    .info-text h2 {
        color: #07417D;
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .info-text p {
        color: #6F7070;
        font-size: 1.1rem;
        line-height: 1.6;
    }

.info-section img {
    width: 400px;
    border-radius: 15px;
    animation: fadeInRight 1.5s ease;
}
/* === IMPORTANCE SECTION === */

.importance {
    background: #f6f9f8;
    padding: 80px 8%;
    text-align: center;
}

    .importance h2 {
        color: #07417D;
        font-size: 2rem;
        margin-bottom: 50px;
    }

.importance-boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .box:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .box h3 {
        color: #07417D;
        margin-bottom: 10px;
    }
/* === HOW IT WORKS === */

.how-it-works {
    padding: 80px 8%;
    text-align: center;
    background: #ffffff;
}

    .how-it-works h2 {
        color: #07417D;
        font-size: 2rem;
        margin-bottom: 40px;
    }

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.step {
    background: #f6f9f8;
    padding: 25px;
    border-radius: 15px;
    width: 230px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .step:hover {
        transform: scale(1.05);
    }

.step-number {
    display: inline-block;
    background: #07417D;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}
/* === FAQ SECTION === */

.faq {
    padding: 80px 8%;
    background: #f8fafa;
    text-align: center;
}

    .faq h2 {
        color: #07417D;
        margin-bottom: 40px;
        font-size: 2rem;
    }

.faq-item {
    text-align: left;
    max-width: 750px;
    margin: 15px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

    .faq-item input {
        display: none;
    }

    .faq-item label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 25px;
        font-weight: 500;
        color: #07417D;
        cursor: pointer;
        transition: background 0.3s;
    }

        .faq-item label:hover {
            background: #f0f5f4;
        }

    .faq-item .arrow {
        transition: transform 0.3s;
    }

    .faq-item input:checked + label .arrow {
        transform: rotate(180deg);
    }

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    background: #ffffff;
}

.faq-item input:checked ~ .answer {
    max-height: 150px;
    padding: 18px 25px;
    border-top: 1px solid #eaeaea;
}
/* === FOOTER === */

.footer {
    background: #07417D;
    color: #fff;
    text-align: center;
    padding: 60px 8%;
}

    .footer h3 {
        color: #80A69B;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .footer p {
        font-size: 1rem;
        margin-bottom: 8px;
        opacity: 0.9;
    }
/* === ANIMATIONS === */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ==================== RESPONSIVE ADDITIONS ==================== */

/* General container and feed adjustments */
@media (max-width: 1024px) {
    .container, .feed-section, .search-container {
        width: 95%;
        padding: 15px;
    }

    .item-card {
        flex-direction: column;
        width: 100%;
    }

    .item-image img {
        width: 100%;
        height: auto;
    }
}

/* Modals responsiveness */
@media (max-width: 768px) {
    .help-modal-content, .claim-modal .help-modal-content {
        width: 90%;
        padding: 20px;
    }

    .report-textarea, .report-input {
        width: 100%;
    }
}

/* Navigation responsiveness */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 15px 0;
        display: none; /* toggle with JS for hamburger menu */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

        .nav-links.show {
            display: flex;
        }

    .auth-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Font scaling */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .importance h2, .how-it-works h2, .faq h2 {
        font-size: 1.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}

/* Footer adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 40px 5%;
    }

        .footer h3 {
            font-size: 1.2rem;
        }
}

/* Steps, boxes, and importance section adjustments */
@media (max-width: 768px) {
    .importance-boxes, .steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .box, .step {
        width: 90%;
    }
}

/* FAQ items */
@media (max-width: 768px) {
    .faq-item {
        width: 95%;
        margin: 10px auto;
    }

    .answer {
        max-height: none;
    }
}

/* Search bar adjustments for mobile */
@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-box, .search-btn {
        width: 100%;
    }
}

/* Hero section mobile tweaks */
@media (max-width: 480px) {
    .hero {
        padding: 80px 5% 40px;
    }

    .hero-img, .hero-image-stack {
        width: 100%;
        max-width: 100%;
    }

    .hero .hero-content {
        width: 100%;
        padding: 20px;
    }
}
