/* ================================================================
   AALAY DESIGN STUDIO - ADMIN AUTH
   Montserrat-only, cinematic interior-design aesthetic
   ================================================================ */

:root {
    --aalay-olive-950: #15180f;
    --aalay-olive-900: #20261a;
    --aalay-olive-800: #2b3323;
    --aalay-olive-700: #39432e;
    --aalay-green: #0e3d2f;
    --aalay-green-hover: #124b3a;
    --aalay-cream: #f2eadb;
    --aalay-stone: #c7baa0;
    --aalay-white: #fffdf7;
    --aalay-muted: rgba(255, 253, 247, 0.72);
    --aalay-border: rgba(255, 255, 255, 0.24);
    --aalay-card: rgba(221, 213, 193, 0.26);
    --aalay-card-strong: rgba(37, 43, 28, 0.3);
    --aalay-danger: #e10000;
    --aalay-success: #bde1c9;
    --aalay-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
    color: var(--aalay-white);
    background: var(--aalay-olive-950);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.auth-page a {
    text-decoration: none;
}
.auth-page button,
.auth-page input {
    font-family: inherit;
}

.auth-shell {
    position: relative;
    overflow: auto;
    background: url("/assets/admin/images/aalay-login-bg.png") center center /
        cover no-repeat;
}
.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(14, 19, 12, 0.06); */
    /* background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.55) 20%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.08) 55%,
        rgba(0, 0, 0, 0) 70%
    ); */
    z-index: 0;
    pointer-events: none;
}

/* Replace this layer with a clean background image when supplied.
   Recommended: assets/admin/images/aalay-login-bg.png */
/* .auth-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: url("/assets/admin/images/aalay-login-bg.png") center center /
        cover no-repeat;
} */

.auth-content {
    position: relative;
    z-index: 1;
    width: min(1360px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 58px clamp(28px, 5vw, 76px) 58px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.82fr);
    gap: clamp(44px, 6vw, 100px);
    align-items: center;
}

.auth-intro {
    position: relative;
    align-self: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 2vh;
    animation: introReveal 0.95s var(--aalay-ease) both;
}

.auth-brand-lockup {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    letter-spacing: 0.18em;
    margin-bottom: 15px;
}

.auth-brand-mark,
.auth-card-mark {
    display: grid;
    place-items: center;
    width: auto;
    height: 32px;
    /* border: 1px solid rgba(255, 255, 255, 0.68); */
    /* border-radius: 50%; */
    font-weight: 500;
    font-size: 20px;
}

.auth-brand-name,
.auth-card-name {
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.15em;
}
.auth-brand-sub,
.auth-card-sub {
    margin-top: 4px;
    font-size: 7px;
    line-height: 1;
    letter-spacing: 0.42em;
}
.auth-brand-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 2px 0 4px;
}
.auth-brand-admin {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.26em;
}

.auth-intro h1 {
    margin: 0;
    max-width: 760px;
    font-size: 45px;
    line-height: 50px;
    font-weight: 500;
    letter-spacing: -0.045em;
}
.auth-intro h1 strong {
    font-weight: 700;
}
.auth-intro h1 span {
    font-weight: 400;
    color: rgba(255, 253, 247, 0.93);
}

.auth-rule {
    display: block;
    width: 41px;
    height: 1px;
    margin: 15px 0;
    background: rgba(255, 253, 247, 0.74);
}
.auth-intro p {
    margin: 0;
    max-width: 610px;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.75;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.auth-card-wrap {
    display: flex;
    justify-content: center;
    /* animation: cardReveal 1s var(--aalay-ease) 0.08s both; */
}

.auth-card {
    position: relative;
    width: min(100%, 400px);
    padding: 35px 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    /* background:
        linear-gradient(
            145deg,
            rgba(235, 229, 213, 0.28),
            rgba(75, 80, 58, 0.18)
        ),
        rgba(57, 62, 45, 0.2); */
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(115%);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
    overflow: hidden;
}
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.16),
        transparent 30%,
        transparent 70%,
        rgba(255, 240, 207, 0.08)
    );
    pointer-events: none;
}
.auth-card-brand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    color: #ffffff;
}
.auth-card-mark {
    width: auto;
    height: 33px;
    font-size: 20px;
}
.auth-card-name {
    font-size: 18px;
}

.auth-heading {
    position: relative;
    margin: 30px 0 25px;
}
.auth-heading h2 {
    margin: 0;
    font-size: 25px;
    line-height: 25px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.auth-heading p {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
}

.auth-alert {
    position: relative;
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.16);
}
.auth-alert-danger {
    color: var(--aalay-danger);
    border: 1px solid rgba(242, 180, 175, 0.3);
}
.auth-alert-success {
    color: var(--aalay-success);
    border: 1px solid rgba(189, 225, 201, 0.28);
}
.auth-alert i {
    margin-top: 2px;
}

.auth-field {
    position: relative;
    margin-bottom: 19px;
}
.auth-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 253, 247, 0.82);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.auth-input-wrap {
    position: relative;
}
.auth-input-icon {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 13px;
    transition: color 0.22s ease;
}
.auth-input {
    width: 100%;
    height: 45px;
    padding: 0 48px 0 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    outline: 0;
    color: var(--aalay-white);
    background: rgba(255, 255, 255, 0.065);
    font-size: 15px;
    font-weight: 500;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}
.auth-input::placeholder {
    color: rgba(255, 253, 247, 0.52);
    opacity: 1;
}
.auth-input:hover {
    background: rgba(255, 255, 255, 0.085);
}
.auth-input:focus {
    border-color: rgba(226, 217, 194, 0.62);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(228, 217, 193, 0.07);
    transform: translateY(-1px);
}
.auth-input:focus + .auth-input-icon {
    color: var(--aalay-cream);
}
.auth-password-wrap .auth-input {
    padding-right: 55px;
}

.auth-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border: 0;
    color: #ffffff;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}
.auth-password-toggle:hover {
    color: var(--aalay-white);
    background: rgba(255, 255, 255, 0.07);
}
.auth-password-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

.auth-error {
    display: block;
    margin-top: 4px;
    color: var(--aalay-danger);
    font-size: 11px;
    font-weight: 600;
}
.auth-field.has-error .auth-input {
    border-color: rgba(255, 0, 0, 0.65);
}

.auth-form-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
    margin-bottom: 22px;
}
.auth-forgot-link {
    color: rgba(255, 253, 247, 0.72);
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.auth-forgot-link:hover {
    color: var(--aalay-white);
}

.auth-submit {
    position: relative;
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #000000;
    background: linear-gradient(135deg, #ececec, #d2d2d2);
    box-shadow: 0 12px 30px rgba(7, 42, 32, 0.26);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}
.auth-submit::before {
    content: "";
    position: absolute;
    left: -35%;
    top: 0;
    width: 24%;
    height: 100%;
    transform: skewX(-20deg);
    background: rgba(255, 255, 255, 0.12);
    animation: buttonSweep 5.8s ease-in-out infinite;
}
.auth-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(7, 42, 32, 0.34);
}
.auth-submit:active {
    transform: translateY(0);
}
.auth-submit i {
    margin-left: 8px;
    font-size: 11px;
    transition: transform 0.22s ease;
}
.auth-submit:hover i {
    transform: translateX(3px);
}
.auth-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.auth-secure {
    position: relative;
    margin-top: 28px;
}
.auth-secure-line {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.auth-secure-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 19px;
    color: rgba(255, 253, 247, 0.55);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.auth-secure-label i {
    font-size: 11px;
}

@keyframes introReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translate3d(28px, 18px, 0) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-10px, 12px, 0) rotate(12deg);
    }
}
@keyframes buttonSweep {
    0%,
    72% {
        left: -35%;
        opacity: 0;
    }
    78% {
        opacity: 0.65;
    }
    88% {
        left: 118%;
        opacity: 0;
    }
    100% {
        left: 118%;
        opacity: 0;
    }
}

@media (max-width: 1399.98px) {
    .auth-content {
        width: min(1160px, 100%);
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.88fr);
        gap: 50px;
        padding-left: clamp(28px, 4vw, 56px);
        padding-right: clamp(28px, 4vw, 56px);
    }
    .auth-intro p {
        font-size: 14px;
    }
}

@media (max-width: 1099.98px) {
    .auth-page {
        overflow: auto;
    }
    .auth-shell {
        min-height: 100svh;
    }
    .auth-content {
        min-height: 100svh;
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 34px;
        padding-bottom: 34px;
    }
    .auth-intro {
        align-self: auto;
        padding: 0;
    }
    .auth-brand-lockup {
        position: static;
        margin-bottom: 36px;
    }
    .auth-intro h1 {
        max-width: 700px;
        font-size: 45px;
    }
    .auth-card-wrap {
        justify-content: flex-start;
    }
    .auth-card {
        width: min(560px, 100%);
    }
    .auth-line-two {
        right: 10%;
    }
}

@media (max-width: 767.98px) {
    .auth-shell {
        background: linear-gradient(145deg, #182016, #2d3424 60%, #5b513f);
    }
    .auth-content {
        gap: 32px;
        padding: 28px 20px 30px;
    }
    .auth-brand-lockup {
        margin-bottom: 28px;
    }
    .auth-brand-name {
        font-size: 16px;
    }
    .auth-brand-admin {
        font-size: 9px;
    }
    .auth-intro h1 {
        font-size: 45px;
        line-height: 1.08;
    }
    .auth-intro p {
        font-size: 12px;
        line-height: 1.65;
    }
    .desktop-break {
        display: none;
    }
    .auth-card-wrap {
        width: 100%;
    }
    .auth-card {
        width: 100%;
        padding: 36px 24px 30px;
        border-radius: 20px;
    }
    .auth-heading {
        margin-top: 33px;
    }
    .auth-heading h2 {
        font-size: 24px;
    }
    .auth-input {
        height: 54px;
        border-radius: 13px;
    }
    .auth-submit {
        min-height: 54px;
    }
    .auth-arch-one {
        right: -150px;
        top: -100px;
    }
    .auth-line-one {
        left: 6%;
    }
}

@media (max-width: 420px) {
    .auth-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .auth-card {
        padding-left: 18px;
        padding-right: 18px;
    }
    .auth-brand-lockup {
        gap: 9px;
    }
    .auth-brand-divider {
        margin-left: 0;
    }
    .auth-intro h1 {
        font-size: 35px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
