/*
|--------------------------------------------------------------------------
| Shared Admin Authentication Styles
|--------------------------------------------------------------------------
| Used by the admin login and forgot-password Blade views.
| Background image expected at: public/assets/admin/images/background.jpg
*/

:root {
    --auth-ink: #102b3a;
    --auth-muted: #647987;
    --auth-primary: #0c526b;
    --auth-accent: #21a18f;
    --auth-border: rgba(255, 255, 255, .55);
    --auth-danger: #a93232;
    --auth-success: #176b45;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #071c2b;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 42px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    color: var(--auth-ink);
    font-family: "Hind Siliguri", sans-serif;
    background: #071c2b;
}

.auth-backdrop {
    position: fixed;
    z-index: -3;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(3, 18, 31, .76), rgba(5, 48, 65, .53)),
        url("../images/background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.015);
}

.auth-page::before {
    content: "";
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 14% 15%, rgba(45, 191, 166, .24), transparent 38%),
        radial-gradient(ellipse at 88% 82%, rgba(50, 136, 202, .24), transparent 42%);
}

.auth-orb {
    position: fixed;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(.2px);
    animation: authFloat 11s ease-in-out infinite;
}

.auth-orb--one {
    width: 260px;
    height: 260px;
    top: 7%;
    right: 9%;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 0 70px rgba(255, 255, 255, .055);
}

.auth-orb--two {
    width: 170px;
    height: 170px;
    bottom: 8%;
    left: 8%;
    background: rgba(31, 173, 153, .10);
    animation-delay: -4s;
}

.auth-shell {
    width: min(100%, 460px);
    margin: auto;
    animation: authRise .65s ease both;
}

.auth-shell--forgot {
    width: min(100%, 460px);
}

.auth-brand {
    margin: 0 0 22px;
    text-align: center;
    color: #fff;
}

.auth-logo {
    width: fit-content;
    min-width: 76px;
    min-height: 64px;
    max-width: min(280px, 75vw);
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.auth-logo img {
    display: block;
    width: auto;
    max-width: min(280px, 75vw);
    max-height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, .18));
}

.auth-logo--text {
    width: 64px;
    min-width: 64px;
    height: 64px;
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 20px;
    background: rgba(255, 255, 255, .13);
    font: 700 27px "Sora", sans-serif;
    backdrop-filter: blur(12px);
}

.auth-brand__name {
    margin: 0;
    color: #fff;
    font: 700 clamp(1.35rem, 4vw, 1.8rem)/1.25 "Sora", sans-serif;
    letter-spacing: -.035em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .25);
}

.auth-brand__tag {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
}

.auth-card {
    position: relative;
    padding: 34px 32px 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 25px;
    background: rgba(248, 252, 253, .88);
    box-shadow:
        0 28px 80px rgba(0, 12, 25, .34),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}

.auth-card__heading {
    margin: 0 0 24px;
    text-align: center;
}

.auth-card__eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--auth-accent);
    font: 700 .68rem "Sora", sans-serif;
    letter-spacing: .19em;
}

.auth-card__heading h1 {
    margin: 0;
    color: var(--auth-ink);
    font: 700 1.55rem/1.3 "Hind Siliguri", sans-serif;
}

.auth-card__heading p {
    margin: 7px 0 0;
    color: var(--auth-muted);
    font-size: .96rem;
    line-height: 1.55;
}

.auth-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(33, 161, 143, .2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(33, 161, 143, .15), rgba(12, 82, 107, .08));
    color: var(--auth-primary);
    font-size: 21px;
}

.auth-field {
    margin-bottom: 17px;
}

.auth-field label {
    display: block;
    margin: 0 0 7px;
    color: #294655;
    font-size: .94rem;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    transform: translateY(-50%);
    color: #718895;
    font-size: 15px;
    pointer-events: none;
}

.auth-input-wrap input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 17px 0 46px;
    border: 1px solid rgba(21, 69, 88, .16);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, .88);
    color: var(--auth-ink);
    font: 400 1rem "Hind Siliguri", sans-serif;
    box-shadow: 0 2px 8px rgba(10, 45, 60, .025);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input-wrap input::placeholder {
    color: #9aaab2;
}

.auth-input-wrap input:focus {
    border-color: rgba(23, 132, 139, .72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 161, 143, .12);
}

.auth-input-wrap--password input {
    padding-right: 50px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6b818d;
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: rgba(12, 82, 107, .08);
    color: var(--auth-primary);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2px 0 20px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-muted);
    font-size: .92rem;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.auth-link,
.auth-back-link a {
    color: var(--auth-primary);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.auth-link:hover,
.auth-back-link a:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, #0b526c, #168b87 58%, #24a58e);
    color: #fff;
    font: 600 1rem "Hind Siliguri", sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(10, 91, 105, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 30px rgba(10, 91, 105, .3);
}

.auth-submit:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.auth-demo {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px dashed rgba(21, 69, 88, .2);
}

.auth-demo__title {
    margin-bottom: 9px;
    color: #294655;
    font-size: .9rem;
    font-weight: 700;
}

.auth-demo__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-demo__chip {
    min-width: 0;
    flex: 1 1 130px;
    overflow: hidden;
    padding: 8px 10px;
    border: 1px solid rgba(21, 69, 88, .12);
    border-radius: 9px;
    background: rgba(255, 255, 255, .75);
    color: var(--auth-muted);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-demo__button {
    width: 100%;
    margin-top: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(33, 161, 143, .45);
    border-radius: 10px;
    background: rgba(33, 161, 143, .08);
    color: var(--auth-primary);
    font: 600 .9rem "Hind Siliguri", sans-serif;
    cursor: pointer;
}

.auth-demo__button:hover {
    background: rgba(33, 161, 143, .15);
}

.auth-back-link {
    margin-top: 19px;
    text-align: center;
}

.auth-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-footer {
    margin-top: 19px;
    color: rgba(255, 255, 255, .68);
    font-size: .85rem;
    text-align: center;
}

.auth-card .alert {
    position: relative;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.5;
}

.auth-card .alert-info {
    border-color: #c8dfe9;
    background: #eaf5fa;
    color: #17516a;
}

.auth-card .alert-success {
    border-color: #c4e5d1;
    background: #eaf7ef;
    color: var(--auth-success);
}

.auth-card .alert-danger {
    border-color: #efc9c6;
    background: #fff0ef;
    color: var(--auth-danger);
}

.auth-card .alert .close {
    float: right;
    margin-left: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.15rem;
    cursor: pointer;
}

@keyframes authRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-17px); }
}

@media (max-width: 520px) {
    body.auth-page {
        padding: 28px 14px;
    }

    .auth-card {
        padding: 28px 21px 24px;
        border-radius: 21px;
    }

    .auth-options {
        align-items: flex-start;
    }

    .auth-orb--one {
        width: 170px;
        height: 170px;
        right: -50px;
    }

    .auth-orb--two {
        width: 120px;
        height: 120px;
        left: -40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* LAPTOP HEIGHT OPTIMIZATION
   Keep the complete login panel visible on common laptop screens. */
@media (min-width: 521px) and (max-height: 850px) {
    body.auth-page {
        min-height: 100vh;
        padding: 14px 18px;
        align-items: center;
    }

    .auth-shell {
        width: min(100%, 430px);
    }

    .auth-brand {
        margin-bottom: 12px;
    }

    .auth-logo {
        min-height: 42px;
        margin-bottom: 7px;
    }

    .auth-logo img {
        max-height: 54px;
    }

    .auth-logo--text {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        border-radius: 14px;
        font-size: 21px;
    }

    .auth-brand__name {
        font-size: 1.45rem;
    }

    .auth-brand__tag {
        margin-top: 3px;
        font-size: .88rem;
    }

    .auth-card {
        padding: 22px 26px 20px;
        border-radius: 21px;
    }

    .auth-card__heading {
        margin-bottom: 14px;
    }

    .auth-card__eyebrow {
        margin-bottom: 5px;
    }

    .auth-card__heading h1 {
        font-size: 1.38rem;
    }

    .auth-card__heading p {
        margin-top: 4px;
        font-size: .88rem;
    }

    .auth-card__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 9px;
        border-radius: 14px;
        font-size: 18px;
    }

    .auth-field {
        margin-bottom: 11px;
    }

    .auth-field label {
        margin-bottom: 4px;
        font-size: .88rem;
    }

    .auth-input-wrap input {
        height: 46px;
        border-radius: 11px;
        font-size: .94rem;
    }

    .auth-input-wrap > i {
        left: 14px;
        font-size: 14px;
    }

    .auth-input-wrap input {
        padding-left: 42px;
    }

    .auth-input-wrap--password input {
        padding-right: 46px;
    }

    .auth-options {
        gap: 8px;
        margin: 1px 0 13px;
    }

    .auth-remember,
    .auth-link {
        font-size: .85rem;
    }

    .auth-submit {
        min-height: 46px;
        padding: 9px 16px;
        border-radius: 11px;
        font-size: .94rem;
    }

    .auth-demo {
        margin-top: 13px;
        padding-top: 11px;
    }

    .auth-demo__title {
        margin-bottom: 6px;
        font-size: .84rem;
    }

    .auth-demo__chip {
        padding: 6px 8px;
        font-size: .77rem;
    }

    .auth-demo__button {
        margin-top: 7px;
        padding: 7px 10px;
        font-size: .84rem;
    }

    .auth-footer {
        margin-top: 10px;
        font-size: .78rem;
    }

    .auth-card .alert {
        margin-bottom: 11px;
        padding: 9px 11px;
        font-size: .86rem;
    }
}

/* Extra compact spacing for shorter laptop displays. */
@media (min-width: 521px) and (max-height: 700px) {
    body.auth-page {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .auth-brand {
        margin-bottom: 8px;
    }

    .auth-logo {
        min-height: 34px;
        margin-bottom: 4px;
    }

    .auth-logo img {
        max-height: 42px;
    }

    .auth-brand__name {
        font-size: 1.3rem;
    }

    .auth-brand__tag {
        font-size: .82rem;
    }

    .auth-card {
        padding: 17px 24px 16px;
    }

    .auth-card__heading {
        margin-bottom: 10px;
    }

    .auth-card__heading h1 {
        font-size: 1.25rem;
    }

    .auth-field {
        margin-bottom: 8px;
    }

    .auth-input-wrap input {
        height: 42px;
    }

    .auth-options {
        margin-bottom: 9px;
    }

    .auth-submit {
        min-height: 42px;
    }

    .auth-demo {
        margin-top: 9px;
        padding-top: 8px;
    }

    .auth-footer {
        margin-top: 7px;
    }
}
