﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins',sans-serif;
    background: linear-gradient( 135deg, #ffffff 0%, #f8f9f2 40%, #eef2d7 100% );
    color: #2b2b2b;
    overflow-x: hidden;
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 70px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(212,222,149,0.3);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #7a8650;
}

    .logo i {
        font-size: 28px;
    }

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        color: #4b5563;
        font-weight: 500;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: #7a8650;
        }

/* ================= BUTTONS ================= */

.login-button,
.primary-btn,
.submit-btn {
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 500;
}

/* NAV BUTTON */

.login-button {
    background: #D4DE95;
    padding: 12px 24px;
    border-radius: 12px;
    color: #2b2b2b;
}

    .login-button:hover {
        transform: translateY(-2px);
        background: #c4cf82;
    }

/* HERO BUTTON */

.primary-btn {
    background: #D4DE95;
    color: #2b2b2b;
    padding: 15px 32px;
    border-radius: 14px;
    font-size: 16px;
}

    .primary-btn:hover {
        background: #c4cf82;
        transform: translateY(-3px);
    }

/* SECONDARY */

.secondary-btn {
    text-decoration: none;
    color: #4b5563;
    border: 1px solid #d6d6d6;
    padding: 15px 32px;
    border-radius: 14px;
    transition: 0.3s;
}

    .secondary-btn:hover {
        background: #f7f7f7;
    }

/* ================= HERO SECTION ================= */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 90px;
    position: relative;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient( 135deg, #f4f7df, #D4DE95 );
    color: #5f6d33;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.05;
    margin-bottom: 25px;
    color: #2d3748;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #5f6368;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ================= BACKGROUND DECOR ================= */

.hero-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -120px;
    top: 120px;
    background: radial-gradient( circle, rgba(212,222,149,0.45), transparent 70% );
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: -100px;
    bottom: -100px;
    background: radial-gradient( circle, rgba(212,222,149,0.25), transparent 70% );
    border-radius: 50%;
}

/* ================= MODAL ================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 200;
}

    .modal-container.active {
        opacity: 1;
        visibility: visible;
    }

.modal-box {
    width: 430px;
    background: #ffffff;
    border-radius: 28px;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    animation: popup 0.3s ease;
}

@keyframes popup {

    from {
        transform: translateY(15px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #7c7c7c;
}

/* ================= FORM ================= */

.form-box {
    display: none;
}

    .form-box.active-form {
        display: block;
    }

    .form-box h2 {
        font-size: 28px;
        margin-bottom: 10px;
        color: #2d3748;
    }

.form-description {
    color: #6b7280;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #4b5563;
        font-weight: 500;
    }

.input-field {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    background: #fafafa;
    transition: 0.3s;
}

    .input-field:focus-within {
        border-color: #D4DE95;
        box-shadow: 0 0 0 4px rgba(212,222,149,0.25);
    }

    .input-field i {
        color: #8b8b8b;
    }

.input-control {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px;
    font-size: 15px;
}

/* ================= FORM BUTTON ================= */

.submit-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    background: #D4DE95;
    color: #2b2b2b;
    margin-top: 10px;
}

    .submit-btn:hover {
        background: #c4cf82;
        transform: translateY(-2px);
    }

/* ================= REMEMBER ================= */

.remember-section {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 20px;
    color: #6b7280;
}

.forgot-link {
    text-decoration: none;
    color: #7a8650;
}

/* ================= SWITCH ================= */

.switch-form {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
}

    .switch-form span {
        color: #7a8650;
        cursor: pointer;
        font-weight: 600;
    }

/* ================= RESPONSIVE ================= */

@media(max-width:768px) {

    .header {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 120px 25px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .modal-box {
        width: 92%;
    }
}
