﻿/* =========================================================
   LOGIN / REGISTER — login.css
   ALL classes use "reg__" prefix to avoid ANY collision
   with style.css
   Sections:
   01. Page Wrapper
   02. Card
   03. Title
   04. Form & Fields
   05. Button
   06. OR Divider
   07. Switch Link
   08. Validator & Server Message
   09. Responsive
========================================================= */


/* =========================================================
   01. PAGE WRAPPER
========================================================= */
.reg__page {
    min-height: 70vh;
    background-color: #FDF5ED;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}


/* =========================================================
   02. CARD
========================================================= */
.reg__card {
    width: 100%;
    max-width: 560px;
    background-color: #FDF5ED;
    padding: 16px 52px 40px;
    box-sizing: border-box;
}


/* =========================================================
   03. TITLE
========================================================= */
.reg__title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: #411C05;
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}


/* =========================================================
   04. FORM & FIELDS
   Using margin-bottom on each .reg__field instead of
   gap — works reliably with ASP.NET rendered inputs
========================================================= */
.reg__form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.reg__field {
    width: 100%;
    margin-bottom: 20px; /* ← spacing between every field */
}

    .reg__field:last-of-type {
        margin-bottom: 0;
    }

/* Targets both plain <input> AND asp:TextBox rendered input */
.reg__input,
.reg__form input[type="text"],
.reg__form input[type="email"],
.reg__form input[type="tel"],
.reg__form input[type="password"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    padding: 0 20px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #411C05;
    outline: none;
    box-shadow: 0 2px 8px rgba(65, 28, 5, 0.08);
    transition: box-shadow 0.22s ease;
}

    .reg__input::placeholder,
    .reg__form input::placeholder {
        color: #A08060;
        font-style: normal;
        font-weight: 500;
    }

    .reg__input:focus,
    .reg__form input:focus {
        box-shadow: 0 0 0 2px rgba(201, 166, 70, 0.40), 0 2px 10px rgba(65, 28, 5, 0.10);
    }


/* =========================================================
   05. BUTTON
========================================================= */
.reg__btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.reg__btn {
    display: inline-block;
    padding: 14px 72px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #C9A646 0%, #7B4A1C 100%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(201, 166, 70, 0.40), 0 2px 8px rgba(123, 74, 28, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    white-space: nowrap;
}

    .reg__btn:hover {
        transform: translateY(-2px) scale(1.025);
        box-shadow: 0 12px 34px rgba(201, 166, 70, 0.50), 0 4px 12px rgba(123, 74, 28, 0.28);
        background: linear-gradient(135deg, #D4B050 0%, #8A5522 100%);
    }

    .reg__btn:active {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 14px rgba(201, 166, 70, 0.35), 0 1px 4px rgba(123, 74, 28, 0.18);
    }


/* =========================================================
   06. OR DIVIDER
========================================================= */
.reg__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 20px;
    width: 100%;
}

.reg__divider-line {
    flex: 1;
    display: block;
    height: 1px;
    background: #C8A882;
    opacity: 0.55;
}

.reg__divider-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #C9A646;
    letter-spacing: 0.12em;
    white-space: nowrap;
    flex-shrink: 0;
}


/* =========================================================
   07. SWITCH LINK
========================================================= */
.reg__switch {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #936C53;
    margin: 0;
    line-height: 1.6;
}

.reg__switch-link {
    font-weight: 700;
    color: #552709;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .reg__switch-link:hover {
        color: #C9A646;
        text-decoration: underline;
    }


/* =========================================================
   08. VALIDATOR & SERVER MESSAGE
========================================================= */

/* ASP.NET inline validator error text */
.reg__validator {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: #C0392B;
    margin-top: 5px;
    padding-left: 4px;
    line-height: 1.4;
}

/* Server-side lblMessage */
.reg__server-msg {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.reg__server-msg--success {
    background: #EAF5EC;
    color: #276A35;
    border: 1px solid #A8D5AF;
}

.reg__server-msg--error {
    background: #FDF0EE;
    color: #9B2B1F;
    border: 1px solid #E8B4AF;
}


/* =========================================================
   09. RESPONSIVE
========================================================= */

@media (max-width: 600px) {
    .reg__card {
        padding: 10px 28px 32px;
    }

    .reg__title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .reg__input,
    .reg__form input[type="text"],
    .reg__form input[type="email"],
    .reg__form input[type="tel"],
    .reg__form input[type="password"] {
        height: 46px;
        font-size: 0.85rem;
    }

    .reg__field {
        margin-bottom: 16px;
    }

    .reg__btn {
        padding: 13px 52px;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .reg__card {
        padding: 8px 18px 26px;
    }

    .reg__title {
        font-size: 1.3rem;
    }

    .reg__input,
    .reg__form input[type="text"],
    .reg__form input[type="email"],
    .reg__form input[type="tel"],
    .reg__form input[type="password"] {
        height: 42px;
        font-size: 0.8rem;
        padding: 0 14px;
    }

    .reg__field {
        margin-bottom: 14px;
    }

    .reg__btn {
        padding: 11px 40px;
        font-size: 0.84rem;
    }

    .reg__switch {
        font-size: 0.8rem;
    }
}


/* =========================================================
   LOGIN PAGE — all classes use "lgn__" prefix
   Sections:
   L01. Page & Card
   L02. Title
   L03. Form & Fields
   L04. Button
   L05. OR Divider
   L06. Switch Link
   L07. OTP Screen
   L08. OTP Boxes
   L09. Resend + Timer
   L10. Responsive
========================================================= */


/* =========================================================
   L01. PAGE & CARD
========================================================= */
.lgn__page {
    min-height: 100vh;
    background-color: #FDF5ED;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.lgn__card {
    width: 100%;
    max-width: 580px;
    background-color: #FDF5ED;
    padding: 16px 52px 44px;
    box-sizing: border-box;
}


/* =========================================================
   L02. TITLE
========================================================= */
.lgn__title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #411C05;
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}


/* =========================================================
   L03. FORM & FIELDS
========================================================= */
.lgn__form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.lgn__field {
    width: 100%;
    margin-bottom: 20px;
}

    .lgn__field:last-of-type {
        margin-bottom: 0;
    }

.lgn__input,
.lgn__form input[type="text"],
.lgn__form input[type="tel"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 0 22px;
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #411C05;
    outline: none;
    box-shadow: 0 2px 8px rgba(65, 28, 5, 0.08);
    transition: box-shadow 0.22s ease;
}

    .lgn__input::placeholder,
    .lgn__form input::placeholder {
        color: #A08060;
        font-style: normal;
        font-weight: 500;
    }

    .lgn__input:focus,
    .lgn__form input:focus {
        box-shadow: 0 0 0 2px rgba(201, 166, 70, 0.40), 0 2px 10px rgba(65, 28, 5, 0.10);
    }

/* validator */
.lgn__validator {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: #C0392B;
    margin-top: 5px;
    padding-left: 4px;
    line-height: 1.4;
}


/* =========================================================
   L04. BUTTON
========================================================= */
.lgn__btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.lgn__btn {
    display: inline-block;
    padding: 14px 72px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #C9A646 0%, #7B4A1C 100%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(201, 166, 70, 0.40), 0 2px 8px rgba(123, 74, 28, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    white-space: nowrap;
}

    .lgn__btn:hover {
        transform: translateY(-2px) scale(1.025);
        box-shadow: 0 12px 34px rgba(201, 166, 70, 0.50), 0 4px 12px rgba(123, 74, 28, 0.28);
        background: linear-gradient(135deg, #D4B050 0%, #8A5522 100%);
    }

    .lgn__btn:active {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 14px rgba(201, 166, 70, 0.35), 0 1px 4px rgba(123, 74, 28, 0.18);
    }


/* =========================================================
   L05. OR DIVIDER
========================================================= */
.lgn__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 20px;
    width: 100%;
}

.lgn__divider-line {
    flex: 1;
    display: block;
    height: 1.5px;
    background: #7B4A1C;
    opacity: 0.40;
}

.lgn__divider-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7B4A1C;
    letter-spacing: 0.14em;
    white-space: nowrap;
    flex-shrink: 0;
}


/* =========================================================
   L06. SWITCH LINK
========================================================= */
.lgn__switch {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #936C53;
    margin: 0;
    line-height: 1.6;
}

.lgn__switch-link {
    font-weight: 700;
    color: #552709;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .lgn__switch-link:hover {
        color: #C9A646;
        text-decoration: underline;
    }


/* =========================================================
   L07. OTP SCREEN — wrapper + title
========================================================= */
.lgn__otp-screen {
    display: none; /* hidden by default — JS toggles this */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    .lgn__otp-screen.lgn__active {
        display: flex;
    }

.lgn__phone-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

    .lgn__phone-screen.lgn__hidden {
        display: none;
    }


/* =========================================================
   L08. OTP BOXES
========================================================= */
.lgn__otp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.lgn__otp-box {
    width: 52px;
    height: 56px;
    border: none;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(65, 28, 5, 0.10);
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #411C05;
    text-align: center;
    outline: none;
    caret-color: #C9A646;
    transition: box-shadow 0.22s ease;
    /* remove number spinners */
    -moz-appearance: textfield;
}

    .lgn__otp-box::-webkit-outer-spin-button,
    .lgn__otp-box::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .lgn__otp-box:focus {
        box-shadow: 0 0 0 2px rgba(201, 166, 70, 0.45), 0 2px 10px rgba(65, 28, 5, 0.12);
    }


/* =========================================================
   L09. RESEND + TIMER
========================================================= */
.lgn__resend-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 320px; /* same width as 5 boxes + gaps */
    margin: 0 auto 24px;
    gap: 6px;
}

.lgn__resend-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #936C53;
}

.lgn__resend-btn {
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #936C53;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

    .lgn__resend-btn:hover {
        color: #C9A646;
    }

    .lgn__resend-btn:disabled {
        color: #936C53;
        cursor: default;
    }

.lgn__timer {
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #552709;
    min-width: 34px;
}

/* server message — reused on both screens */
.lgn__server-msg {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.lgn__server-msg--success {
    background: #EAF5EC;
    color: #276A35;
    border: 1px solid #A8D5AF;
}

.lgn__server-msg--error {
    background: #FDF0EE;
    color: #9B2B1F;
    border: 1px solid #E8B4AF;
}


/* =========================================================
   L10. RESPONSIVE
========================================================= */
@media (max-width: 600px) {
    .lgn__card {
        padding: 10px 28px 34px;
    }

    .lgn__title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .lgn__input,
    .lgn__form input[type="text"],
    .lgn__form input[type="tel"] {
        height: 46px;
        font-size: 0.85rem;
    }

    .lgn__btn {
        padding: 13px 52px;
        font-size: 0.9rem;
    }

    .lgn__otp-box {
        width: 44px;
        height: 48px;
        font-size: 1.2rem;
    }

    .lgn__otp-row {
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .lgn__card {
        padding: 8px 18px 28px;
    }

    .lgn__title {
        font-size: 1.3rem;
    }

    .lgn__btn {
        padding: 12px 36px;
        font-size: 0.84rem;
    }

    .lgn__otp-box {
        width: 38px;
        height: 42px;
        font-size: 1.1rem;
    }

    .lgn__otp-row {
        gap: 6px;
    }
}
/* =========================================================
   ACCESS DENIED PAGE — AccessDenied.css
   All classes use "ad__" prefix — zero collision with style.css
   Palette: matches NS Fashion Hub (#FDF5ED, #552709, #C9A646)
========================================================= */


/* =========================================================
   PAGE WRAPPER
========================================================= */
.ad__page {
    min-height: 100vh;
    background-color: #FDF5ED;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Decorative top & bottom accent bars */
.ad__top-bar,
.ad__bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C9A646 0%, #7B4A1C 50%, #C9A646 100%);
    z-index: 10;
}

.ad__top-bar {
    top: 0;
}

.ad__bottom-bar {
    bottom: 0;
}


/* =========================================================
   CARD
========================================================= */
.ad__card {
    width: 100%;
    max-width: 520px;
    background: #FDF5ED;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 40px 44px;
    box-sizing: border-box;
    animation: ad-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ad-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   LOCK ICON
========================================================= */
.ad__icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    flex-shrink: 0;
}

/* Pulsing rings behind the icon */
.ad__icon-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid #C9A646;
    animation: ad-ring-pulse 2.4s ease-out infinite;
}

.ad__icon-ring--outer {
    width: 110px;
    height: 110px;
    opacity: 0.25;
    animation-delay: 0s;
}

.ad__icon-ring--inner {
    width: 82px;
    height: 82px;
    opacity: 0.40;
    animation-delay: 0.6s;
}

@keyframes ad-ring-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.40;
    }

    60% {
        transform: scale(1.08);
        opacity: 0.12;
    }

    100% {
        transform: scale(0.92);
        opacity: 0.40;
    }
}

.ad__lock {
    width: 52px;
    height: 52px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(123, 74, 28, 0.22));
}


/* =========================================================
   TEXT
========================================================= */
.ad__eyebrow {
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #C9A646;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.ad__title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #411C05;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.ad__desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #936C53;
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 380px;
}


/* =========================================================
   BUTTONS
========================================================= */
.ad__btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

/* Primary — gold gradient */
.ad__btn--primary {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #C9A646 0%, #7B4A1C 100%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 24px rgba(201, 166, 70, 0.38), 0 2px 8px rgba(123, 74, 28, 0.20);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
}

    .ad__btn--primary:hover {
        transform: translateY(-2px) scale(1.025);
        color: #fff;
        text-decoration: none;
        box-shadow: 0 12px 32px rgba(201, 166, 70, 0.50);
    }

/* Outline — brown border */
.ad__btn--outline {
    display: block;
    width: 100%;
    padding: 13px 24px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid #7B4A1C;
    color: #552709;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-align: center;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
    box-sizing: border-box;
}

    .ad__btn--outline:hover {
        background: #552709;
        color: #FDF5ED;
        text-decoration: none;
        transform: translateY(-2px);
    }


/* =========================================================
   LOGGED-IN USER INFO STRIP
========================================================= */
.ad__user-strip {
    margin-top: 32px;
    padding: 12px 22px;
    border-radius: 50px;
    background: #F0E4D4;
    border: 1px solid #D9C3A8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.ad__user-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #936C53;
}

.ad__user-name {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #411C05;
}

.ad__user-role-wrap {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #936C53;
}

.ad__user-role {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #C9A646;
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 560px) {
    .ad__card {
        padding: 16px 24px 36px;
    }

    .ad__title {
        font-size: 1.8rem;
    }

    .ad__desc {
        font-size: 0.88rem;
    }

    .ad__icon-wrap {
        width: 90px;
        height: 90px;
        margin-bottom: 22px;
    }

    .ad__icon-ring--outer {
        width: 90px;
        height: 90px;
    }

    .ad__icon-ring--inner {
        width: 68px;
        height: 68px;
    }

    .ad__lock {
        width: 42px;
        height: 42px;
    }

    .ad__btn-group {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .ad__card {
        padding: 12px 16px 28px;
    }

    .ad__title {
        font-size: 1.5rem;
    }

    .ad__btn--primary,
    .ad__btn--outline {
        font-size: 0.84rem;
        padding: 12px 18px;
    }
}
.lgn__forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 16px;
}

.lgn__forgot-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #936C53;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .lgn__forgot-link:hover {
        color: #552709;
        text-decoration: underline;
    }