/* Estilos base del sistema OTP (provisionales) */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f6f8fa;
    color: #24292f;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.auth-shell {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-card,
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

h1 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #0d1117;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
}

.field-error {
    color: #d93025;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-info {
    background: #e7f3ff;
    border: 1px solid #b6d7f9;
    color: #0a4e9e;
}

.alert-warning {
    background: #fff4e5;
    border: 1px solid #ffd7a6;
    color: #8a4b00;
}

.alert-danger {
    background: #fce8e6;
    border: 1px solid #f3b4ae;
    color: #b3261e;
}

.attempts-left {
    font-size: 0.9rem;
    color: #57606a;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    appearance: auto;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    accent-color: #1a73e8;
    cursor: pointer;
    vertical-align: middle;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.5rem;
}

.btn-primary:hover,
.btn-secondary:hover { background: #0d47a1; }

.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #495057; }

.btn-link {
    background: none;
    border: none;
    color: #1a73e8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.auth-footer {
    font-size: 0.9rem;
    color: #57606a;
    margin-top: 1rem;
}

.auth-footer a {
    color: #1a73e8;
    text-decoration: none;
}

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

.profile-fields { margin: 1rem 0; }

.profile-fields dt {
    font-weight: 700;
    color: #57606a;
    font-size: 0.85rem;
}

.profile-fields dd {
    margin: 0 0 0.75rem 0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}
