
/* Ocean Liquid Glass authentication theme */

.auth-body {
    --glass-text: #f5fbff;
    --glass-muted: #d1e5ee;
    --glass-accent: #9cf3ff;
    --glass-blur: 18px;

    --glass-ocean: url("../images/login.png?v=20261205-search-1");

    position: relative;
    isolation: isolate;

    display: block;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;
    padding: 0;

    background: #062d42;
    color: var(--glass-text);

    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    font-size: 15px;
    line-height: 1.5;

    color-scheme: dark;
}


/* Full-screen ocean background */

.auth-body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            135deg,
            rgba(0, 16, 28, 0.28),
            rgba(0, 25, 43, 0.12) 55%,
            rgba(0, 15, 25, 0.34)
        ),
        var(--glass-ocean) center / cover no-repeat;

    pointer-events: none;
}


/* Responsive authentication workspace */

.auth-body .auth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: none;

    min-height: 100vh;
    min-height: 100dvh;

    padding: clamp(24px, 5vh, 54px) 18px;

    gap: 24px;
}


/* Application branding */

.auth-body .auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin: 0;

    color: var(--glass-text);

    font-size: clamp(21px, 3vw, 29px);
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: -0.6px;

    text-align: center;
    text-shadow: 0 2px 14px #001b2d;
}

.auth-brand-icon {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #f4b400;
    color: #18212a;

    box-shadow: 0 3px 14px #00162466;
}

.auth-brand-icon svg {
    display: block;

    width: 23px;
    height: 23px;
}


/* Liquid Glass card */

.auth-body .auth-card {
    position: relative;
    isolation: isolate;

    width: min(100%, 440px);

    flex-shrink: 0;

    padding: clamp(24px, 5vw, 36px);

    border: 1px solid #d9f7ff9c;
    border-radius: 30px;

    background: linear-gradient(
        145deg,
        #234f62f5,
        #0b3044f5
    );

    color: var(--glass-text);

    box-shadow:
        0 24px 75px #00152280,
        inset 0 1px 1px #e3fdffad,
        inset 0 -2px 8px #76d4eb55;

    overflow: hidden;
}


/* Frosted glass enhancement */

@supports (
    (backdrop-filter: blur(1px)) or
    (-webkit-backdrop-filter: blur(1px))
) {
    .auth-body .auth-card {
        background: linear-gradient(
            145deg,
            rgba(6, 38, 57, 0.72),
            rgba(9, 49, 67, 0.54) 52%,
            rgba(4, 32, 49, 0.78)
        );

        -webkit-backdrop-filter:
            blur(var(--glass-blur))
            saturate(135%);

        backdrop-filter:
            blur(var(--glass-blur))
            saturate(135%);
    }
}


/* Glass reflection layer */

.auth-body .auth-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    border-radius: inherit;

    background:
        radial-gradient(
            ellipse at 6% 0%,
            #bcfaff50,
            transparent 35%
        ),
        radial-gradient(
            ellipse at 100% 98%,
            #71e6ff40,
            transparent 32%
        ),
        linear-gradient(
            125deg,
            #f0fdff14,
            transparent 43%,
            #a6eaff16 75%,
            transparent
        );

    box-shadow:
        inset 0 0 18px #a9edff32,
        inset 2px 0 4px #e1fcff55,
        inset -2px 0 5px #b4f5ff35;

    pointer-events: none;
}


/* Glass edge highlights */

.auth-body .auth-card::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    border-radius: inherit;

    background:
        linear-gradient(
            100deg,
            transparent 12%,
            #e5fdffbb 42%,
            #d5f9ff66 63%,
            transparent 88%
        ) top center / 88% 1px no-repeat,

        linear-gradient(
            100deg,
            transparent,
            #8ce7ff99,
            transparent
        ) bottom center / 90% 1px no-repeat;

    pointer-events: none;
}


/* Authentication heading */

.auth-body .auth-title {
    margin: 0 0 9px;

    color: var(--glass-text);

    font-size: clamp(29px, 5vw, 35px);
    font-weight: 750;

    line-height: 1.2;
    letter-spacing: -1.2px;

    text-align: center;

    text-shadow: 0 2px 10px #00273d66;
}

.auth-body .auth-subtitle {
    margin: 9px 0 27px;

    color: var(--glass-muted);

    font-size: 13px;

    line-height: 1.6;
    text-align: center;
}

.auth-body .auth-subtitle::after {
    content: "";

    display: block;

    width: 50px;
    height: 2px;

    margin: 16px auto 0;

    background: linear-gradient(
        90deg,
        transparent,
        #a8f7ff,
        transparent
    );
}


/* Authentication form */

.auth-body .auth-card form {
    display: grid;

    gap: 19px;
}

.auth-body .auth-card form > .mb-3 {
    min-width: 0;

    margin-bottom: 0 !important;
}

.auth-body .form-label {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 7px;

    color: var(--glass-text);

    font-size: 14px;
    font-weight: 600;
}

.auth-label-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 4px 8px;
}

.auth-field-icon {
    display: inline-block;

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    color: #d9f6ff;
}


/* Glass input fields */

.auth-body .auth-card .form-control {
    width: 100%;
    min-width: 0;
    min-height: 48px;

    padding: 11px 13px;

    border: 1px solid #c9f4ff55;
    border-radius: 12px;

    background-color: rgba(219, 247, 255, 0.08);

    color: var(--glass-text);

    font-family: inherit;
    font-size: 16px;

    box-shadow: inset 0 1px 4px #001d3033;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-body .auth-card .form-control::placeholder {
    color: #c5deea;

    opacity: 1;
}

.auth-body .auth-card .form-control:focus {
    border-color: #adf5ff;

    background-color: rgba(219, 247, 255, 0.12);

    color: var(--glass-text);

    box-shadow:
        0 0 0 3px #75dbef38,
        inset 0 1px 4px #001d3033;
}

.auth-body .auth-card .form-control:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* Browser autofill appearance */

.auth-body .form-control:-webkit-autofill,
.auth-body .form-control:-webkit-autofill:hover,
.auth-body .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--glass-text);

    -webkit-box-shadow:
        0 0 0 1000px #24556b inset;

    caret-color: var(--glass-text);
}


/* Password visibility controls */

.auth-body .password-toggle-btn {
    color: #dcf7ff;
}

.auth-body .password-toggle-btn:not(:disabled):hover {
    background: #ddf8ff20;
    color: #ffffff;
}

.auth-body .password-toggle-btn[aria-pressed="true"] {
    color: var(--glass-accent);
}

.auth-body .password-toggle-btn:focus-visible {
    outline-color: var(--glass-accent);
}


/* Authentication links */

.auth-body .auth-card a:not(.btn) {
    color: var(--glass-accent);

    font-weight: 600;

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    overflow-wrap: anywhere;
}

.auth-body .auth-card a:not(.btn):hover {
    color: #ffffff;
}

.auth-body .auth-label-line a {
    font-size: 12px;
}


/* Primary glass button */

.auth-body .auth-card .btn-primary {
    --bs-btn-color: #042c40;
    --bs-btn-hover-color: #042c40;
    --bs-btn-active-color: #042c40;
    --bs-btn-disabled-color: #042c40;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 49px;

    margin-top: 4px;
    padding: 11px 16px;

    border: 1px solid #b9f8ff91;
    border-radius: 13px;

    background: linear-gradient(
        125deg,
        #a8f3ff,
        #53d5ee 55%,
        #38b9dd
    );

    color: #042c40;

    font-family: inherit;
    font-size: 16px;
    font-weight: 750;

    box-shadow:
        0 6px 20px #001a3855,
        inset 0 1px 1px #ffffff99;

    transition:
        filter 0.18s ease,
        transform 0.18s ease;
}

.auth-body .auth-card .btn-primary:not(:disabled):hover {
    color: #042c40;

    filter: brightness(1.09);
}

.auth-body .auth-card .btn-primary:not(:disabled):active {
    color: #042c40;

    transform: translateY(1px);
}

.auth-body .auth-card .btn-primary:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* Authentication footer */

.auth-body .auth-footer {
    margin: 23px 0 0;

    color: var(--glass-muted);

    font-size: 13px;

    line-height: 1.6;
    text-align: center;
}


/* Field help and validation */

.auth-body .form-text {
    margin-top: 7px;

    color: var(--glass-muted);

    font-size: 12px;
}

.auth-body .invalid-feedback {
    color: #ffd0d5;

    font-size: 12px;

    overflow-wrap: anywhere;
}

.auth-body .auth-card .form-control.is-invalid {
    border-color: #ffb4c0;
}

.auth-body .auth-card .form-control.is-invalid:focus {
    border-color: #ffb4c0;

    box-shadow: 0 0 0 3px rgba(255, 180, 192, 0.18);
}

.auth-body .password-field:has(> input.is-invalid)
    ~ .invalid-feedback {
    display: block;
}


/* Authentication feedback */

.auth-body .auth-card .alert {
    margin-bottom: 17px;
    padding: 11px 13px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.auth-body .auth-card .alert-danger {
    border-color: rgba(255, 180, 192, 0.4);

    background: rgba(74, 23, 38, 0.85);

    color: #ffd0d5;
}

.auth-body .auth-card .alert-success {
    border-color: rgba(167, 229, 188, 0.4);

    background: rgba(12, 65, 53, 0.85);

    color: #c4f9d8;
}


/* Email verification status icons */

.auth-result-icon {
    display: grid;
    place-items: center;

    width: 66px;
    height: 66px;

    margin: 0 auto 20px;

    border: 1px solid rgba(167, 229, 188, 0.45);
    border-radius: 50%;

    background: rgba(167, 229, 188, 0.12);
    color: #c4f9d8;

    box-shadow: inset 0 0 15px rgba(167, 229, 188, 0.12);
}

.auth-result-icon svg {
    width: 32px;
    height: 32px;
}

.auth-result-icon.is-error {
    border-color: rgba(255, 180, 192, 0.45);

    background: rgba(255, 180, 192, 0.12);
    color: #ffd0d5;
}


/* Keyboard accessibility */

.auth-body .auth-card a:focus-visible,
.auth-body .auth-card button:focus-visible {
    outline: 2px solid #b2f6ff;

    outline-offset: 3px;
}


/* Tablet performance optimization */

@media (max-width: 900px) {
    .auth-body {
        --glass-blur: 12px;
    }
}


/* Mobile responsive layout */

@media (max-width: 576px) {
    .auth-body {
        --glass-blur: 8px;
    }

    .auth-body::before {
        background-position:
            center,
            60% center;
    }

    .auth-body .auth-shell {
        padding: 26px 16px;

        gap: 19px;
    }

    .auth-body .auth-card {
        padding: 26px 22px;

        border-radius: 24px;
    }

    .auth-brand-icon {
        width: 35px;
        height: 35px;
    }

    .auth-body .auth-subtitle {
        margin-bottom: 23px;
    }

    .auth-body .auth-card form {
        gap: 17px;
    }
}


/* Small mobile screens */

@media (max-width: 360px) {
    .auth-body .auth-shell {
        padding-inline: 12px;
    }

    .auth-body .auth-card {
        padding-inline: 17px;
    }

    .auth-body .auth-brand {
        gap: 8px;

        font-size: 19px;
    }
}


/* Short viewports and landscape devices */

@media (max-height: 650px) {
    .auth-body .auth-shell {
        justify-content: flex-start;

        padding-block: 22px;

        gap: 16px;
    }

    .auth-body .auth-card {
        padding-block: 25px;
    }
}


/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .auth-body *,
    .auth-body *::before,
    .auth-body *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Unified Ocean Blue branding */

.auth-body .auth-brand-icon {
    background: linear-gradient(
        125deg,
        #a8f3ff,
        #53d5ee 55%,
        #38b9dd
    );

    color: #042c40;

    box-shadow:
        inset 0 1px 1px #ffffff99,
        0 3px 14px #00162466;
}

/* MarineNote refined authentication branding */

.auth-body .auth-brand-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    padding: 0;

    background: #ffffff;

    border: none;
    border-radius: 12px;

    box-shadow: none;

    overflow: hidden;
}

.auth-body .auth-brand-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform: scale(1.08);
}


/* MarineNote wordmark */

.auth-body .auth-brand .brand-name {
    color: #f1f5f9;

    font-weight: 750;
    letter-spacing: -0.8px;
}

.auth-body .auth-brand .brand-accent {
    color: #67e8f9;
}


/* Responsive authentication branding */

@media (max-width: 576px) {
    .auth-body .auth-brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .auth-body .auth-brand {
        gap: 9px;
    }
}/* MarineNote transparent authentication logo */

.auth-body .auth-brand-icon {
    background: transparent !important;

    border: none !important;
    border-radius: 0;

    padding: 0;

    box-shadow: none !important;

    overflow: visible;
}

.auth-body .auth-brand-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: transparent;

    transform: none;
}