@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --background: #0d0f0e;
    --background-secondary: #151816;

    --card: rgba(25, 28, 26, 0.88);
    --card-light: #1c201e;

    --text: #f5f3ed;
    --text-secondary: #a7aaa4;
    --text-muted: #777c76;

    --accent: #d9a441;
    --accent-light: #edc36c;
    --accent-dark: #a97820;

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(217, 164, 65, 0.55);

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);

    --radius: 20px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: "DM Sans", sans-serif;

    background: var(--background);
    color: var(--text);

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PAGE
========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 40px 20px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(217, 164, 65, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(217, 164, 65, 0.06),
            transparent 30%
        );
}


/* =========================================================
   DECORATIVE BACKGROUND
========================================================= */

.background-shape {
    position: fixed;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;

    opacity: 0.15;

    animation: floating 8s ease-in-out infinite;
}

.shape-one {
    background: var(--accent);
    top: -250px;
    left: -200px;
}

.shape-two {
    background: #6f5130;
    bottom: -250px;
    right: -200px;

    animation-delay: -4s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.auth-container {
    width: min(100%, 1050px);

    display: grid;
    grid-template-columns: 0.85fr 1.15fr;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    backdrop-filter: blur(25px);

    overflow: hidden;

    position: relative;

    animation: containerAppear 0.7s ease forwards;
}

@keyframes containerAppear {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   BRAND
========================================================= */

.auth-brand {
    min-height: 680px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 60px 45px;

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(217, 164, 65, 0.11),
            transparent 60%
        );

    border-right: 1px solid var(--border);
}

.brand-logo {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 22px;

    color: var(--accent-light);

    font-size: 28px;

    border: 1px solid rgba(217, 164, 65, 0.3);

    background: rgba(217, 164, 65, 0.08);

    box-shadow:
        0 0 40px rgba(217, 164, 65, 0.08);

    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.auth-brand h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(3rem, 5vw, 4.5rem);

    font-weight: 600;

    letter-spacing: -2px;

    line-height: 1;

    margin-bottom: 25px;
}

.auth-brand h1 span {
    color: var(--accent);
}

.auth-brand p {
    max-width: 300px;

    color: var(--text-secondary);

    font-size: 15px;

    line-height: 1.7;
}

.brand-decoration {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 35px;

    color: var(--accent);

    font-size: 10px;
}

.brand-decoration span {
    width: 45px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent)
    );
}

.brand-decoration span:last-child {
    background: linear-gradient(
        90deg,
        var(--accent),
        transparent
    );
}


/* =========================================================
   FORM CONTAINER
========================================================= */

.auth-form-container {
    padding: 60px 70px;

    display: flex;
    flex-direction: column;

    justify-content: center;
}

.register-container {
    padding-top: 45px;
    padding-bottom: 45px;
}


/* =========================================================
   HEADER
========================================================= */

.form-header {
    margin-bottom: 35px;
}

.form-label {
    display: inline-block;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.form-header h2 {
    font-family: "Playfair Display", serif;

    font-size: 36px;

    font-weight: 600;

    letter-spacing: -0.5px;

    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.input-group label {
    color: #d4d5d0;

    font-size: 13px;

    font-weight: 500;
}

.input-wrapper {
    height: 52px;

    display: flex;
    align-items: center;

    position: relative;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.input-wrapper:focus-within {
    border-color: var(--border-focus);

    background: rgba(217, 164, 65, 0.035);

    box-shadow:
        0 0 0 4px rgba(217, 164, 65, 0.06);
}

.input-wrapper > i {
    width: 50px;

    text-align: center;

    color: var(--text-muted);

    font-size: 14px;

    transition: color 0.25s ease;
}

.input-wrapper:focus-within > i {
    color: var(--accent);
}

.input-wrapper input {
    width: 100%;
    height: 100%;

    padding: 0 15px 0 0;

    border: 0;
    outline: 0;

    color: var(--text);

    background: transparent;

    font-size: 14px;
}

.input-wrapper input::placeholder {
    color: #5f645f;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-toggle {
    width: 45px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);

    background: transparent;

    cursor: pointer;

    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--accent);
}


/* =========================================================
   OPTIONS
========================================================= */

.form-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: -3px;

    font-size: 12px;
}

.remember,
.terms {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    cursor: pointer;
}

.remember input,
.terms input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 16px;
    height: 16px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #454a45;

    border-radius: 4px;

    transition: 0.2s ease;
}

.remember input:checked + .custom-checkbox,
.terms input:checked + .custom-checkbox {
    background: var(--accent);

    border-color: var(--accent);
}

.remember input:checked + .custom-checkbox::after,
.terms input:checked + .custom-checkbox::after {
    content: "\f00c";

    font-family: "Font Awesome 6 Free";

    font-weight: 900;

    color: #17130b;

    font-size: 9px;
}

.forgot-password {
    color: var(--accent);

    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--accent-light);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-button {
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 5px;

    border-radius: 10px;

    color: #17130b;

    background: var(--accent);

    font-weight: 700;

    font-size: 14px;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25),
        transparent 70%
    );

    transform: translateX(-100%);

    transition: transform 0.6s ease;
}

.primary-button:hover {
    background: var(--accent-light);

    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(217, 164, 65, 0.2);
}

.primary-button:hover::before {
    transform: translateX(100%);
}

.primary-button i {
    transition: transform 0.2s ease;
}

.primary-button:hover i {
    transform: translateX(4px);
}


/* =========================================================
   DIVIDER
========================================================= */

.form-divider {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 25px 0 18px;

    color: var(--text-muted);

    font-size: 11px;
}

.form-divider::before,
.form-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}


/* =========================================================
   SOCIAL BUTTONS
========================================================= */

.social-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.social-button {
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid var(--border);

    border-radius: 9px;

    color: var(--text-secondary);

    background: rgba(255, 255, 255, 0.025);

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s ease;
}

.social-button i {
    font-size: 14px;
}

.social-button:hover {
    color: var(--text);

    border-color: rgba(255, 255, 255, 0.16);

    background: rgba(255, 255, 255, 0.05);

    transform: translateY(-1px);
}


/* =========================================================
   REGISTER / TERMS
========================================================= */

.register-text {
    text-align: center;

    margin-top: 28px;

    color: var(--text-secondary);

    font-size: 12px;
}

.register-text a,
.terms a {
    color: var(--accent);

    font-weight: 600;

    transition: color 0.2s ease;
}

.register-text a:hover,
.terms a:hover {
    color: var(--accent-light);
}

.terms {
    align-items: flex-start;

    line-height: 1.5;

    font-size: 11px;

    margin-top: -2px;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 850px) {

    .auth-container {
        grid-template-columns: 1fr;

        max-width: 580px;
    }

    .auth-brand {
        min-height: auto;

        padding: 45px 30px 40px;

        border-right: 0;

        border-bottom: 1px solid var(--border);
    }

    .auth-brand h1 {
        font-size: 3.2rem;
    }

    .auth-brand p {
        max-width: 420px;
    }

    .auth-form-container {
        padding: 45px 45px 50px;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 550px) {

    .auth-page {
        padding: 15px;
    }

    .auth-container {
        border-radius: 16px;
    }

    .auth-brand {
        padding: 35px 25px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;

        margin-bottom: 18px;

        font-size: 22px;

        border-radius: 18px;
    }

    .auth-brand h1 {
        font-size: 2.8rem;

        margin-bottom: 16px;
    }

    .auth-brand p {
        font-size: 13px;
    }

    .brand-decoration {
        margin-top: 25px;
    }

    .auth-form-container,
    .register-container {
        padding: 35px 25px 40px;
    }

    .form-header {
        margin-bottom: 28px;
    }

    .form-header h2 {
        font-size: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .form-options {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .primary-button {
        height: 52px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .auth-page {
        padding: 10px;
    }

    .auth-brand {
        padding: 30px 20px;
    }

    .auth-form-container {
        padding: 30px 20px 35px;
    }

    .auth-brand h1 {
        font-size: 2.5rem;
    }

    .form-header h2 {
        font-size: 27px;
    }
}