/* ==================================================================================
   PIXELFY - AUTH CSS (Tela de Login)
   Estilos específicos para autenticação e tela de login
   ================================================================================== */

/* =================== TELA DE LOGIN PREMIUM (GLASSMORPHISM) =================== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

/* Background animado */
.login-screen::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -400px;
    right: -400px;
    animation: float 20s ease-in-out infinite;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -300px;
    left: -300px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.login-container {
    position: relative;
    z-index: 10;
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl) var(--spacing-2xl);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideUp 0.6s var(--transition-bounce);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-header i {
    font-size: 72px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
}

.login-header h1,
.login-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.login-title {
    font-size: 26px;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    margin-bottom: 10px;
}

.login-header p,
.login-subtitle {
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 500;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.login-form {
    text-align: left;
}

/* Botão Google Premium */
.btn-google {
    width: 100%;
    padding: 18px 24px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-purple);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-google:hover::before {
    width: 400px;
    height: 400px;
}

.btn-google:hover {
    border-color: var(--primary-600);
    box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
    transform: translateY(-2px);
    color: white;
}

.btn-google i,
.btn-google span {
    position: relative;
    z-index: 1;
    transition: color var(--transition-base);
}

.btn-google:hover i,
.btn-google:hover span {
    color: white;
}

.login-benefits {
    margin-top: var(--spacing-2xl);
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.login-benefits h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-benefits ul {
    list-style: none;
}

.login-benefits li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-base);
}

.login-benefits li:hover {
    transform: translateX(4px);
    color: var(--primary-600);
}

.login-benefits li i {
    color: var(--success);
    font-size: 16px;
}

.login-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    margin-top: var(--spacing-xl);
}

.login-footer p {
    font-size: 14px;
    color: var(--gray-600);
}

.login-footer strong {
    color: var(--primary-600);
    font-weight: 700;
}

.login-info {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.login-info i {
    color: var(--primary);
}

/* =================== LOADING SCREEN =================== */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#loadingMessage {
    font-size: 18px;
    font-weight: 500;
}

/* =================== RESPONSIVIDADE =================== */
@media (max-width: 968px) {
    .login-container {
        padding: 40px 30px;
    }

    .login-logo {
        width: 150px;
    }

    .login-title,
    .login-header h1 {
        font-size: 22px;
    }
}
