/* auth.css - Login / Registro
   Antes cada página tenía su propio <style> con una tarjeta azul oscuro
   flotando en el vacío, sin logo ni rastro del resto del sitio (que es
   todo tarjetas blancas + verde de marca). Compartido entre login.php y
   register.php porque hasta ahora ambas duplicaban el CSS letra por letra. */

.auth-page {
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.auth-topbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.5rem;
}

.auth-topbar img {
    height: 32px;
    width: auto;
    border-radius: 4px;
}

.auth-topbar span {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    padding: 1.75rem;
}

.auth-title {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 1.5rem;
}

.auth-field {
    margin-bottom: 1.1rem;
    text-align: left;
}

.auth-field label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-group i.auth-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 0.9rem 0.75rem 2.3rem;
    background: #f7f8f9;
    border: 1px solid var(--glass-border);
    border-radius: 0.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
    color: #aaa;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.auth-toggle-pass {
    position: absolute;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem;
}

.auth-toggle-pass:hover {
    color: var(--text-primary);
}

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 0.6rem;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--btn-primary-text);
    box-shadow: 0 4px 14px rgba(0, 200, 83, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 200, 83, 0.4);
}

.auth-divider {
    margin: 1.35rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.auth-divider span {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 0 0.7rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: white;
    color: #3c4043;
    border: 1px solid var(--glass-border);
}

.auth-btn-google:hover {
    background: #f8f8f8;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-footer-secondary {
    margin-top: 0.75rem;
}

.auth-footer-secondary a {
    color: var(--text-secondary);
    font-weight: 400;
    text-decoration: underline;
}

.auth-error {
    color: #c1272d;
    background: rgba(193, 39, 45, 0.08);
    border: 1px solid rgba(193, 39, 45, 0.15);
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}
