.auth-page {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100svh;
    overflow: hidden;
    background: #ffffff;
}

.auth-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-visual-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.auth-panel {
    position: absolute;
    top: 50%;
    left: 80%;
    z-index: 10;
    box-sizing: border-box;
    width: min(410px, 34vw);
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
}

.auth-content {
    width: 100%;
    max-width: 410px;
    margin: 0;
}

.login-logo {
    display: block;
    width: min(100%, 220px);
    max-width: 220px;
    height: auto;
    margin: 0 auto 16px;
}

.auth-heading {
    margin-bottom: 0;
    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 6px;
    color: #102b52;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.auth-heading p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.35;
}

.form-group {
    margin-bottom: 13px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #26384f;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #16263a;
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #008da8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 141, 168, 0.12);
}

.form-group input[aria-invalid="true"] {
    border-color: #b42318;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #007e97;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.password-toggle:focus {
    outline: 2px solid #008da8;
    outline-offset: 2px;
    border-radius: 4px;
}

.caps-lock-warning {
    margin-top: 5px;
    color: #b45309;
    font-size: 0.82rem;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 11px 0 0;
    font-size: 15px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.auth-content a {
    color: #007f99;
    font-weight: 600;
    text-decoration: none;
}

.auth-content a:hover {
    text-decoration: underline;
}

.sign-in-button {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    margin-bottom: 12px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(90deg, #006f88, #00a3bd);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.sign-in-button:hover {
    box-shadow: 0 10px 24px rgba(0, 126, 151, 0.23);
    transform: translateY(-1px);
}

.sign-in-button:focus {
    outline: 2px solid #008da8;
    outline-offset: 2px;
}

.user-id-recovery {
    margin-top: 0;
    text-align: center;
    font-size: 15px;
}

.auth-divider {
    margin: 14px 0;
}

.auth-divider span {
    display: block;
    height: 1px;
    background: #e2e8f0;
}

.organisation-registration {
    text-align: center;
    font-size: 15px;
}

.organisation-registration p {
    margin: 0 0 4px;
    color: #475569;
}

.registration-link {
    display: inline-block;
}

.auth-support {
    margin-top: 12px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

.auth-support p {
    margin: 0;
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.45;
}

.auth-footer p {
    margin: 0;
}

.auth-footer div {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.field-error {
    margin-top: 5px;
    color: #b42318;
    font-size: 0.82rem;
}

.alert-success {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.88rem;
}

.alert-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fef2f2;
    color: #b42318;
    font-size: 0.88rem;
}

@media (min-width: 769px) {
    .auth-footer {
        display: none;
    }
}

@media (max-width: 1280px) and (min-width: 769px) {
    .auth-panel {
        width: min(410px, 36vw);
    }
}

@media (max-width: 768px) {
    .auth-page {
        height: auto;
        max-height: none;
        min-height: 100vh;
        overflow: visible;
        background: #ffffff;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 100vh;
        padding: 28px 22px;
        overflow: visible;
        background: #ffffff;
        transform: none;
    }

    .auth-content {
        max-width: 460px;
    }

    .login-logo {
        width: min(100%, 280px);
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .auth-footer div {
        align-items: center;
        flex-direction: column;
        gap: 2px;
    }

    .auth-footer div span {
        display: none;
    }
}
