/* auth.css - Estilos Premium para a tela de Login e Registro */

#view-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ocupar toda a tela, pois navbar/header estarão ocultos */
    padding: 20px;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.15), transparent 40%),
                radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.1), transparent 40%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

/* Efeito de iluminação sutil atrás do formulário */
.auth-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.auth-header {
    text-align: center;
    z-index: 1;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 4px;
}

.input-group input {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px; /* Space for the icon */
}

.toggle-password {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

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

.auth-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.auth-divider:not(:empty)::before {
    margin-right: 16px;
}

.auth-divider:not(:empty)::after {
    margin-left: 16px;
}

.google-btn {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-toggle {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
    z-index: 1;
}

.auth-toggle a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

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

/* Upload de Foto Estilizado */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 2px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s;
}

.avatar-preview:hover {
    border-color: var(--accent-primary);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Só mostra quando tem imagem */
}

.avatar-preview i {
    font-size: 24px;
    color: var(--text-secondary);
}

#auth-error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}
