/**
 * Estilos específicos da página de Login/Registro
 * Sistema Multiplataforma
 */

body {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 50%, #f5f3ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    overflow-y: auto;
}

/* Background decorativo */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    z-index: 0;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, -20px); }
}

/* ===== AUTH CARD ===== */
.auth-container {
    margin: auto;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ===== HEADER ===== */
.auth-header {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #6366f1 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ===== BODY ===== */
.auth-body {
    padding: 32px 30px;
}

/* Alert */
.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 8px;
}

.auth-alert.show { display: flex; }
.auth-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Form Groups */
.form-group { margin-bottom: 20px; }
.form-group.hidden { display: none; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 16px;
    transition: all 0.25s ease;
}

.input-wrapper:focus-within {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper i {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 12px;
    transition: color 0.25s;
}

.input-wrapper:focus-within i { color: #2563eb; }

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
}

.input-wrapper input::placeholder { color: #94a3b8; }

/* Google Button */
.btn-google {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: white;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toggle Link */
.auth-toggle {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.auth-toggle span { font-size: 0.85rem; color: #64748b; }

.auth-toggle a {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}

.auth-toggle a:hover { color: #4f46e5; text-decoration: underline; }

/* Back Link */
.auth-back { text-align: center; margin-top: 16px; }

.auth-back a {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.auth-back a:hover { color: #2563eb; }

/* Version */
.auth-version {
    text-align: center;
    margin-top: 24px;
    font-size: 0.72rem;
    color: #cbd5e1;
}

/* Eye toggle */
.toggle-pass {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 0 0 0 8px;
    transition: color 0.25s;
    display: flex;
    align-items: center;
}

.toggle-pass:hover { color: #2563eb; }

/* Responsive */
@media (max-width: 480px) {
    .auth-header { padding: 30px 20px; }
    .auth-body { padding: 24px 20px; }
    .auth-card { border-radius: 18px; }
}
