﻿body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Verdana, Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(247, 250, 253, 0.82) 0%, rgba(255, 255, 255, 0.76) 40%, rgba(255, 255, 255, 0.85) 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%),
        url("/static/image/login-background-beach.jpeg") center center / cover no-repeat fixed;
    color: #1f2933;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: calc(28px + 2cm);
    padding: calc(28px + 1.4cm) 16px 28px;
    box-sizing: border-box;
}

.auth-info-panel {
    width: 460px;
    max-width: 46vw;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 2cm;
    padding: 26px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(232, 238, 245, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex: 0 0 40px;
}

.auth-feature h2 {
    margin: 2px 0 10px;
    font-size: 22px;
    color: #0f172a;
}

.auth-feature p {
    margin: 0;
    font-size: 18px;
    line-height: 1.58;
    color: #475569;
}

.auth-divider-wrap {
    position: relative;
    height: min(84vh, 700px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -0.35cm;
}

.auth-center-brand {
    position: absolute;
    top: calc(-0.45cm - 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.auth-center-logo {
    width: 253px;
    max-width: none;
    height: auto;
    display: block;
}

.auth-divider {
    width: 1px;
    height: calc(100% + 1.2cm);
    margin-top: 1cm;
    background: rgba(214, 222, 234, 0.76);
}

.auth-mobile-brand {
    display: none;
}

.login-wrapper {
    width: 322px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 32px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(216, 224, 232, 0.96);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
}

.login-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 322px;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 2cm;
}

.login-title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #00263E;
}

.login-back-link {
    display: inline-block;
    margin: 0 0 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

.login-back-link:hover {
    text-decoration: underline;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 12px;
}

.login-brand-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.login-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.login-field {
    width: 100%;
    height: 48px;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #c8d2dd;
    box-sizing: border-box;
    margin-bottom: 16px;
    background: #fff;
}

.password-wrap {
    position: relative;
}

.password-field {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 0;
    min-width: 0;
    height: auto;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    opacity: 1;
}

.password-toggle:hover {
    color: #334155;
}

.login-field:focus {
    border-color: #00263E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 38, 62, 0.15);
}

.login-checkrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
}

.captcha-wrap {
    margin-bottom: 18px;
}

.login-btn {
    width: 100%;
    height: 48px;
    font-size: 17px;
    font-weight: 700;
    background: #00263E;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    margin-bottom: 22px;
}

.login-btn:hover {
    background: #001d30;
}

.login-btn:disabled {
    background: #9aa8b6;
    cursor: not-allowed;
}

.separator {
    text-align: center;
    margin: 22px 0;
    color: #64748b;
    position: relative;
}

.separator:before,
.separator:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #d7dee6;
}

.separator:before { left: 0; }
.separator:after { right: 0; }

.oauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #d0d8e2;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #26323f;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 12px;
}

.oauth-btn:hover {
    background: #f7fafc;
}

.oauth-btn img {
    width: 20px;
    height: 20px;
}

.oauth-btn.google {
    border-color: #db4437;
}

.oauth-btn.microsoft {
    border-color: #0078d4;
}

.error-box {
    background: #ffe6e6;
    color: #a40000;
    border: 1px solid #ffb3b3;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.login-saludo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.login-saludo-password {
    margin-top: 4px;
}

.login-hello {
    font-size: 20px;
    font-weight: 700;
    color: #00263E;
    text-align: center;
}

.login-user-mask {
    font-size: 15px;
    color: #475569;
    text-align: center;
}

.login-device-link {
    display: inline-block;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
}

.login-device-link:hover {
    text-decoration: underline;
}

.text-link {
    display: block;
    text-align: center;
    font-size: 15px;
    color: #00263E;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.login-btn-bio {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    background: #ffffff;
    color: #00263E;
    border: 2px solid #00263E;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.login-btn-bio:hover {
    background: #00263E;
    color: #ffffff;
}

.login-btn-bio:disabled {
    border-color: #c8d2dd;
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

.login-btn-bio:disabled:hover {
    border-color: #c8d2dd;
    color: #94a3b8;
    background: #f8fafc;
}

.login-btn-bio svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    stroke: currentColor;
}

.oauth-card {
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.92) 0%, rgba(246, 249, 252, 0.88) 100%);
}

.oauth-card-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #526273;
    text-align: center;
}

.spacer-12 { height: 14px; }
.spacer-20 { height: 23px; }

@media (max-width: 1080px) {
    .auth-info-panel,
    .auth-divider-wrap {
        display: none;
    }

    .auth-layout {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 12px 20px;
    }

    .auth-mobile-brand {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0 0 calc(10px + 1.2cm);
    }

    .login-stack {
        margin-top: 0;
    }

    .auth-mobile-logo {
        width: 230px;
        max-width: 72vw;
        height: auto;
        display: block;
    }
}

@media (max-width: 640px) {
    body.auth-page {
        background-attachment: scroll;
    }

    .auth-layout {
        gap: 4px;
        padding: 8px 10px 14px;
    }

    .login-wrapper {
        width: 100%;
        padding: 18px;
        border-radius: 12px;
    }

    .login-stack {
        width: 100%;
    }

    .login-title {
        margin-bottom: 10px;
        font-size: 22px;
    }

    .login-hello {
        font-size: 18px;
    }
}
