:root {
    /* Emerald */
    --emerald: #12634d;
    --emerald-dark: #0b4938;
    --emerald-light: #ddeae0;

    /* Gold */
    --gold: #c99b43;
    --gold-light: #e8cb83;
    --gold-soft: #f1dfb1;

    /* Cream */
    --cream: #f8f0db;
    --cream-light: #fff9eb;
    --cream-dark: #ede1c5;

    /* Text */
    --text: #20372b;
    --muted: #7c8173;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    min-height: 100vh;
    background: var(--cream);
}



/* Login Card */
.login-card {
    width: 100%;
    max-width: 510px;

    background: rgba(255, 250, 235, 0.96);

    border: 1px solid rgba(201, 155, 67, 0.45);
    border-radius: 28px;

    padding: 48px 50px 42px;

    box-shadow:
        0 25px 70px rgba(11, 73, 56, 0.16),
        0 5px 20px rgba(201, 155, 67, 0.1);

    animation: fadeUp 0.8s ease;
    position: relative;
}

/* Subtle gold top accent */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--gold-light),
        var(--gold),
        transparent
    );
    border-radius: 0 0 10px 10px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
}

.brand-logo {
    width: 56px;
    height: 56px;

    border: 1.5px solid var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--emerald);
    background: rgba(255, 255, 255, 0.45);

    font-family: "Playfair Display", serif;
    font-size: 27px;
    line-height: 1;
    position: relative;
}

.brand-logo small {
    position: absolute;
    bottom: 3px;

    font-family: "DM Sans", sans-serif;
    font-size: 6px;
    letter-spacing: 0.5px;

    color: var(--emerald);
    background: var(--cream-light);
    padding: 0 3px;
}

.brand-name {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    font-weight: 700;
    font-style: italic;
    color: var(--emerald-dark);
}

/* Heading */
.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-heading h1 {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--emerald-dark);
    margin-bottom: 10px;
}

.login-heading p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* Labels */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

/* Inputs */
.form-control {
    height: 56px;
    border-radius: 12px;

    border: 1px solid #e5d9bc;
    background: #f7f0df;

    padding: 12px 17px;
    font-size: 15px;
    color: var(--text);

    box-shadow: none !important;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #a59b83;
}

.form-control:focus {
    border-color: var(--gold);
    background: #fffcf3;

    box-shadow: 0 0 0 4px rgba(201, 155, 67, 0.12) !important;
}

/* Password */
.password-group {
    position: relative;
}

.password-group .form-control {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;

    height: 56px;
    width: 53px;

    border: none;
    background: transparent;

    color: #788477;
    font-size: 19px;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--gold);
}

/* Login Button */
.login-btn {
    height: 57px;
    width: 100%;

    border: 1px solid var(--emerald);
    border-radius: 12px;

    background: var(--emerald);
    color: #fffdf5;

    font-size: 17px;
    font-weight: 700;

    margin-top: 20px;

    transition: all 0.3s ease;

    box-shadow: 0 6px 16px rgba(18, 99, 77, 0.16);
}

.login-btn:hover {
    background: var(--emerald-dark);
    border-color: var(--gold);

    color: var(--gold-light);

    transform: translateY(-2px);

    box-shadow: 0 9px 22px rgba(11, 73, 56, 0.22);
}

.login-btn:active {
    transform: scale(0.98);
}

/* Register */
.register-text {
    text-align: center;
    color: #858575;
    font-size: 14px;
    margin-top: 23px;
    margin-bottom: 0;
}

.register-text a {
    color: var(--emerald);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: 0.3s;
}

.register-text a:hover {
    color: var(--gold);
}

/* Footer */
.bottom-note {
    text-align: center;
    font-size: 11px;
    color: #98927d;
    margin-top: 30px;
    letter-spacing: 0.4px;
}

/* Responsive */
@media (max-width: 576px) {
    .login-wrapper {
        padding: 20px 15px;
        background-position: center;
        background-attachment: scroll;
    }

    .login-card {
        padding: 35px 24px 30px;
        border-radius: 22px;
    }

    .brand {
        margin-bottom: 28px;
        gap: 10px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .brand-name {
        font-size: 27px;
    }

    .login-heading h1 {
        font-size: 32px;
    }

    .login-heading p {
        font-size: 13px;
    }

    .form-control {
        height: 52px;
    }

    .password-toggle {
        height: 52px;
    }

    .login-btn {
        height: 54px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 32px 19px 28px;
    }

    .brand-name {
        font-size: 23px;
    }

    .login-heading h1 {
        font-size: 29px;
    }
}
