/* =========================================================
   ARADILUXE AUTHENTICATION PAGES
   Login / Registration / Account
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(
            circle at top right,
            rgba(231, 201, 111, 0.20),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fffdf9 0%,
            #fbf8f2 55%,
            #f4ead8 100%
        );
    color: #332b26;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   AUTH HEADER
   ========================================================= */

body > header {
    width: 100%;
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 5%;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e7dac3;

    box-shadow:
        0 5px 25px rgba(72, 51, 24, 0.07);

    position: relative;
    z-index: 100;
}

body > header .brand {
    display: flex;
    align-items: center;
}

body > header .brand-link {
    display: flex;
    align-items: center;
}

body > header .brand-logo {
    width: 125px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}


/* =========================================================
   AUTH NAVIGATION
   ========================================================= */

body > header nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(18px, 2.5vw, 34px);

    margin-left: auto;
    margin-right: 20px;
}

body > header nav a {
    position: relative;

    color: #332b26;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

body > header nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #c99600;

    transition: width 0.25s ease;
}

body > header nav a:hover {
    color: #9b7100;
    transform: translateY(-1px);
}

body > header nav a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid #e7dac3;
    border-radius: 12px;

    background: #fffdf9;
    color: #332b26;

    cursor: pointer;

    font-size: 20px;

    align-items: center;
    justify-content: center;
}

.mobile-menu-button:hover {
    border-color: #c99600;
    color: #9b7100;
}


/* =========================================================
   HEADER ACTIONS (Continue Shopping button)
   ========================================================= */

.account-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.account-home-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 30px;
    background: #c99600;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.account-home-button:hover {
    background: #9b7100;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 113, 0, 0.18);
}


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    width: 100%;
    min-height: calc(100vh - 92px);

    padding: 65px 20px 80px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   AUTH CONTAINER
   ========================================================= */

.auth-container {
    width: 100%;
    max-width: 520px;

    margin: 0 auto;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    width: 100%;

    padding: 42px 42px 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 253, 249, 0.96)
        );

    border: 1px solid #e7dac3;
    border-radius: 24px;

    box-shadow:
        0 20px 55px rgba(72, 51, 24, 0.10);

    text-align: center;

    position: relative;

    overflow: hidden;
}

.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #c99600,
            #e7c96f,
            #c99600
        );
}


/* =========================================================
   AUTH LOGO
   ========================================================= */

.auth-logo {
    width: 170px;
    height: auto;

    max-height: 120px;

    object-fit: contain;

    margin: 0 auto 18px;
}


/* =========================================================
   AUTH HEADINGS
   ========================================================= */

.auth-card h1 {
    margin: 0 0 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 5vw, 40px);

    line-height: 1.15;

    color: #332b26;
}

.auth-subtitle {
    max-width: 390px;

    margin: 0 auto 28px;

    color: #6d625b;

    font-size: 15px;
}


/* =========================================================
   AUTH MESSAGE
   ========================================================= */

.auth-message {
    display: none;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 15px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.5;

    text-align: left;
}

.auth-message:not(:empty) {
    display: block;
}

.auth-message.success {
    color: #35653d;

    background: #edf7ed;

    border: 1px solid #cfe6cf;
}

.auth-message.error {
    color: #9d4036;

    background: #fff1ef;

    border: 1px solid #edcfca;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    width: 100%;

    text-align: left;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #40372f;

    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;

    min-height: 50px;

    padding: 0 15px;

    border: 1px solid #dfd1bd;
    border-radius: 11px;

    background: #fffdf9;

    color: #332b26;

    outline: none;

    font-size: 15px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.form-group input::placeholder {
    color: #9a8f84;
}

.form-group input:hover {
    border-color: #cdbb9f;
}

.form-group input:focus {
    border-color: #c99600;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(201, 150, 0, 0.10);
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.auth-card .primary-button {
    width: 100%;

    min-height: 50px;

    margin-top: 5px;

    padding: 0 24px;

    border: none;
    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #c99600,
            #b17e00
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(155, 113, 0, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.auth-card .primary-button:hover {
    background:
        linear-gradient(
            135deg,
            #b17e00,
            #946900
        );

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(155, 113, 0, 0.24);
}

.auth-card .primary-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   AUTH LINKS
   ========================================================= */

.auth-links {
    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #eee4d5;

    text-align: center;
}

.auth-links p {
    margin: 0;

    color: #6d625b;

    font-size: 14px;
}

.auth-links a {
    color: #a8750a;

    font-weight: 700;

    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #7d5b00;

    text-decoration: underline;
}


/* =========================================================
   ACCOUNT PAGE
   ========================================================= */

.account-page {
    width: 100%;
    min-height: calc(100vh - 92px);

    padding: 70px 20px 85px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.account-container {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}

.account-card {
    padding: 48px;

    background: #ffffff;

    border: 1px solid #e7dac3;

    border-radius: 24px;

    box-shadow:
        0 20px 55px rgba(72, 51, 24, 0.09);

    text-align: center;
}

.account-card h1 {
    margin: 0 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 5vw, 44px);

    color: #332b26;
}

.account-introduction {
    margin: 0 auto 30px;

    color: #6d625b;

    font-size: 16px;
}

.account-details {
    margin: 30px 0;

    padding: 25px;

    background:
        rgba(231, 201, 111, 0.12);

    border: 1px solid rgba(201, 150, 0, 0.25);

    border-radius: 16px;
}

.account-details h2 {
    margin: 0 0 15px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #332b26;
}

.account-details p {
    margin: 5px 0;

    color: #6d625b;
}

.account-email {
    color: #9b7100 !important;

    font-weight: 700;
}

.account-actions {
    display: flex;

    justify-content: center;

    gap: 14px;

    margin-top: 25px;
}

.account-button {
    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 25px;

    border-radius: 28px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.continue-shopping {
    background: #c99600;

    color: #ffffff;
}

.continue-shopping:hover {
    background: #9b7100;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(155, 113, 0, 0.18);
}

.account-button.logout-button {
    background: transparent;

    color: #9b7100;

    border: 1px solid #c99600;
}

.account-button.logout-button:hover {
    background: rgba(201, 150, 0, 0.08);

    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
   ========================================================= */

body > footer {
    padding: 45px 20px 30px;

    background: #302820;

    color: #ffffff;

    text-align: center;
}

body > footer h2 {
    margin: 0 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #e7c96f;

    font-size: 30px;
}

body > footer p {
    margin: 7px 0;

    color: rgba(255, 255, 255, 0.70);

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 900px) {

    body > header {
        padding: 10px 4%;
    }

    body > header nav {
        gap: 18px;

        margin-right: 10px;
    }

    body > header nav a {
        font-size: 14px;
    }

    .auth-card {
        padding: 38px 32px;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body > header {
        min-height: 72px;

        padding: 8px 5%;

        flex-wrap: wrap;
    }

    body > header .brand-logo {
        width: 105px;

        max-height: 62px;
    }

    .mobile-menu-button {
        display: inline-flex;

        margin-left: auto;
    }

    body > header nav {
        display: none;

        width: 100%;

        margin: 0;

        padding: 16px 0 6px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        border-top: 1px solid #eee4d5;
    }

    body > header nav.mobile-open {
        display: flex;
    }

    body > header nav a {
        width: 100%;

        padding: 10px 0;

        text-align: center;
    }

    body > header nav a::after {
        display: none;
    }

    .auth-page {
        min-height: auto;

        padding: 45px 16px 60px;
    }

    .auth-card {
        padding: 32px 22px 28px;

        border-radius: 20px;
    }

    .auth-logo {
        width: 145px;

        max-height: 100px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .account-page {
        min-height: auto;

        padding: 45px 16px 60px;
    }

    .account-card {
        padding: 32px 22px;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-button {
        width: 100%;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    body > header .brand-logo {
        width: 95px;
    }

    .auth-card {
        padding: 28px 18px 25px;
    }

    .auth-logo {
        width: 125px;
    }

    .auth-card h1 {
        font-size: 27px;
    }

    .auth-subtitle {
        font-size: 14px;
    }
}