
: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;

    --success: #356b4a;
    --success-bg: #edf5ef;
    --success-border: #c9dfd0;

    --error: #a33a32;
    --error-bg: #fbefed;
    --error-border: #e8c8c4;
}


/* =========================
   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 circles */

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;
}


/* =========================
   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 circle */

.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;
}


/* =========================
   STATUS MESSAGE
========================= */

.status-msg {
    padding: 12px 13px;

    border-radius: 9px;

    font-size: 12px;

    text-align: center;

    margin-bottom: 20px;

    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    line-height: 1.45;

    box-sizing: border-box;
}


/* Success */

.success {
    background: var(--success-bg);

    color: var(--success);

    border: 1px solid var(--success-border);
}


/* Error */

.error {
    background: var(--error-bg);

    color: var(--error);

    border: 1px solid var(--error-border);
}


/* =========================
   FORM
========================= */

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;

    margin-bottom: 17px;
}


/* Email icon */

.input-box i {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--copper);

    font-size: 15px;

    z-index: 2;

    transition: 0.25s ease;
}


/* =========================
   INPUT
========================= */

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);
}


/* 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;

    cursor: pointer;

    font-size: 15px;

    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);
}


/* =========================
   BACK TO LOGIN
========================= */

.back {
    text-align: center;

    margin-top: 22px;

    font-size: 13px;

    color: var(--muted);

    line-height: 1.6;
}


.back a {
    color: var(--wine);

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}


.back a:hover {
    color: var(--copper);

    text-decoration: underline;
}


/* =========================
   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;
    }

    .status-msg {
        font-size: 11px;
    }

    .back {
        font-size: 12px;
    }
}