
:root {
    --ink: #191919;
    --ink-soft: #4b4642;

    --cream: #f7f3ec;
    --cream-deep: #eee7dc;

    --wine: #641f35;
    --wine-dark: #421322;

    --copper: #b87333;
    --gold: #d6a354;

    --muted: #716b65;
    --border: rgba(25, 25, 25, 0.12);
    --input-bg: #fcfaf7;

    --error: #b42318;
}


/* =========================
   PAGE
========================= */

body {
    background:
        radial-gradient(circle at 8% 12%, rgba(184, 115, 51, 0.09), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(100, 31, 53, 0.08), transparent 30%),
        var(--cream);

    font-family: "Segoe UI", Arial, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    margin: 0;

    padding: 30px 20px;
    box-sizing: border-box;

    color: var(--ink);

    position: relative;
    overflow-x: hidden;
}


/* Decorative background detail */

body::before {
    content: "";
    position: fixed;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(184, 115, 51, 0.12);
    border-radius: 50%;

    top: -130px;
    right: -90px;

    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;

    width: 190px;
    height: 190px;

    border: 1px solid rgba(100, 31, 53, 0.08);
    border-radius: 50%;

    bottom: -100px;
    left: -70px;

    pointer-events: none;
}


/* =========================
   LOGIN CARD
========================= */

.card {
    position: relative;

    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #fcfaf7 100%
    );

    width: 90%;
    max-width: 360px;

    padding: 34px 30px;

    border-radius: 18px;

    border: 1px solid rgba(25, 25, 25, 0.09);

    box-shadow:
        0 22px 55px rgba(25, 25, 25, 0.10),
        0 4px 14px rgba(100, 31, 53, 0.05);

    box-sizing: border-box;

    overflow: hidden;
}


/* Premium top accent */

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: linear-gradient(
        90deg,
        var(--wine-dark),
        var(--wine),
        var(--copper),
        var(--gold)
    );
}


/* Decorative card detail */

.card::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    border: 1px solid rgba(184, 115, 51, 0.10);

    border-radius: 50%;

    right: -55px;
    top: 55px;

    pointer-events: none;
}


/* =========================
   FORM
========================= */

.form-group {
    margin-bottom: 17px;
}


label {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: var(--wine);

    margin-bottom: 7px;

    display: block;
}


.input-box {
    position: relative;
}


/* Left input icon */

.input-box i.left-icon {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--copper);

    font-size: 15px;

    z-index: 2;

    transition: 0.25s ease;
}


/* =========================
   PASSWORD TOGGLE
========================= */

.toggle-pass {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--muted);

    cursor: pointer;

    font-size: 14px;

    z-index: 10;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.toggle-pass:hover {
    color: var(--wine);
    transform: translateY(-50%) scale(1.08);
}


/* =========================
   INPUTS
========================= */

input {
    width: 100%;
    height: 50px;

    padding: 0 42px;

    border: 1.5px solid var(--border);

    border-radius: 10px;

    font-size: 14px;

    box-sizing: border-box;

    outline: none;

    background: var(--input-bg);

    color: var(--ink);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


input::placeholder {
    color: #aaa39d;
}


input:hover {
    border-color: rgba(100, 31, 53, 0.28);
}


input:focus {
    border-color: var(--wine);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(100, 31, 53, 0.08);
}


input:focus + .toggle-pass {
    color: var(--wine);
}


/* Autofill */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow:
        0 0 0 1000px var(--input-bg) inset !important;

    -webkit-text-fill-color: var(--ink) !important;

    transition:
        background-color 5000s ease-in-out 0s;
}


/* =========================
   BUTTON
========================= */

.btn {
    width: 100%;
    height: 52px;

    background: linear-gradient(
        135deg,
        var(--wine-dark),
        var(--wine)
    );

    color: #ffffff;

    border: none;

    border-radius: 10px;

    font-weight: 700;
    font-size: 15px;

    cursor: pointer;

    margin-top: 10px;

    box-shadow:
        0 10px 22px rgba(66, 19, 34, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.btn:hover {
    background: linear-gradient(
        135deg,
        var(--wine),
        #7a2943
    );

    transform: translateY(-1px);

    box-shadow:
        0 13px 26px rgba(66, 19, 34, 0.23);
}


.btn:active {
    transform: translateY(0);

    box-shadow:
        0 7px 15px rgba(66, 19, 34, 0.16);
}


/* =========================
   FORGOT PASSWORD
========================= */

.forgot-link {
    text-align: right;

    margin-top: -7px;
    margin-bottom: 16px;
}


.forgot-link a {
    font-size: 11px;

    color: var(--wine);

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}


.forgot-link a:hover {
    color: var(--copper);
    text-decoration: underline;
}


/* =========================
   FOOTER LINKS
========================= */

.footer-links {
    text-align: center;

    margin-top: 22px;

    font-size: 13px;

    color: var(--muted);

    line-height: 1.7;
}


.footer-links a {
    color: var(--wine);

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: var(--copper);
}


/* =========================
   ERROR STATE
========================= */

.input-error {
    border-color: var(--error) !important;

    box-shadow:
        0 0 0 3px rgba(180, 35, 24, 0.07);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    body {
        padding: 20px 14px;
    }

    .card {
        width: 100%;
        max-width: 360px;

        padding: 30px 22px;

        border-radius: 16px;
    }

    input {
        height: 49px;
    }

    .btn {
        height: 51px;
    }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 360px) {

    body {
        padding: 15px 10px;
    }

    .card {
        padding: 27px 18px;
    }

    label {
        font-size: 9px;
    }

    input {
        font-size: 13px;
    }

    .footer-links {
        font-size: 12px;
    }
}