/* =============================================
   AUTH.CSS - Login & Password Recovery pages
   Extracted from login.php & recupera-password.php
   ============================================= */

:root {
    --primary: var(--app-color-primary, #0d6efd);
    --primary-hover: var(--app-color-primary-hover, #0b5ed7);
    --bg-body: var(--app-color-bg, #f1f5f9);
    --card-bg: var(--app-color-surface, #ffffff);
    --text-main: var(--app-color-text, #1e293b);
    --text-muted: var(--app-color-muted, #64748b);
    --border-color: var(--app-color-border, #e2e8f0);
}

body {
    background-color: var(--bg-body);
    background-image: radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 110, 253, 0.05) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--app-font-family, 'Rethink Sans', sans-serif);
    margin: 0;
    padding: 0;
    color: var(--text-main);
}

.main-auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-lg, 20px);
    padding: 40px;
    box-shadow: var(--app-shadow-soft, 0 20px 25px -5px rgba(0, 0, 0, 0.05));
}

.logo-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.logo-wrapper img {
    width: 150px;
    height: auto;
}

.fw-800 {
    font-weight: 800;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-sm, 10px);
    padding: 12px 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--app-radius-md, 10px);
    padding: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: 1.5em;
}

.divider:not(:empty)::after {
    margin-left: 1.5em;
}

.google-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.recupera-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.recupera-link:hover {
    text-decoration: underline;
}

/* Recupera password-specific */
.torna-login {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.torna-login:hover {
    color: var(--primary);
}