.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.auth-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-google {
    width: 100%;
    padding: 0.9rem;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.separator {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.separator span {
    padding: 0 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group .hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.btn-primary {
    width: 100%;
    padding: 0.95rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    min-height: 1.2rem;
}

.success-msg {
    color: var(--success);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.auth-link-small {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.auth-link-small a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-link-small a:hover {
    color: var(--text);
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 1.8rem;
    }
}

/* Bouton Google officiel */
#btn-google {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

#btn-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

#btn-google > div {
    width: 100% !important;
}

/* Suggestion se connecter */
.suggest-login {
    margin: 1rem 0;
    text-align: center;
}

.btn-secondary-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-secondary-link:hover {
    background: var(--primary);
    color: white;
}
