/* Estilos compartidos del flujo de autenticación UNIMED */

button.link-subtle {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-align: inherit;
}

button.link-subtle-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 6px;
    line-height: 1.35;
}

.other-access {
    margin-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.btn-other-access {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
}

.btn-other-access:hover {
    color: #334155;
    background: #f8fafc;
}

.other-access-chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.btn-other-access[aria-expanded="true"] .other-access-chevron {
    transform: rotate(180deg);
}

.other-access-panel {
    margin-top: 1rem;
    animation: viewFade 0.3s ease;
}

.other-access-panel[hidden] {
    display: none !important;
}

.other-access-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.other-access-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

@media (prefers-reduced-motion: reduce) {
    .login-card {
        animation: none !important;
    }

    .view.active {
        animation: none !important;
    }

    .error-banner,
    .success-banner {
        animation: none !important;
    }

    .input-wrap.error {
        animation: none !important;
    }

    .btn-primary-login:hover,
    .btn-whatsapp-login:hover {
        transform: none !important;
    }

    .video-bg video {
        display: none;
    }

    .video-bg::after {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 95, 0.9) 100%);
    }
}
