/* Bipho — inicio de sesión */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.login-bg {
    position: fixed;
    inset: -10% 0;
    z-index: 0;
    will-change: transform;
}

.login-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.82);
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.login-topbar {
    display: flex;
    align-items: center;
    padding: 12px 8px 0;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.login-back:hover {
    background: rgba(255, 255, 255, 0.08);
}

.login-back.hidden {
    display: none;
}

.login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 24px 24px;
    text-align: center;
}

.login-logo {
    width: min(280px, 72vw);
    max-height: 28vh;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.login-brand {
    margin-top: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
}

.login-heading {
    margin-top: 18px;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.login-subheading {
    margin-top: 8px;
    max-width: 420px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.login-panel {
    margin-top: auto;
    width: 100%;
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
}

.login-view {
    display: none;
}

.login-view.active {
    display: block;
}

.login-role-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-role-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: #0066ff;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.login-role-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.42);
}

.login-role-btn svg {
    flex-shrink: 0;
}

.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid #dadce0;
    border-radius: 14px;
    background: #fff;
    color: #3c4043;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-google-btn:hover {
    background: #f8f9fa;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

.login-input-wrap {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.login-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.login-forgot {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    border: none;
    border-radius: 14px;
    background: #0066ff;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
    transition: transform 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 16px;
    color: #9ca3af;
    font-size: 0.92rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-register {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #4b5563;
}

.login-register a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.login-register a:hover {
    text-decoration: underline;
}

.login-app-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    font-size: 0.88rem;
    color: #075985;
    line-height: 1.5;
    display: none;
}

.login-app-note.visible {
    display: block;
}

.login-footer-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.login-footer-note a {
    color: #0284c7;
    font-weight: 600;
}

@media (min-width: 640px) {
    .login-shell {
        max-width: 480px;
        margin: 0 auto;
    }

    .login-panel {
        border-radius: 28px;
        margin: 0 16px 24px;
    }
}
