
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background animado */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.login-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bubble-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation-delay: 2s;
}

.bubble-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation-delay: 4s;
}

/* Container principal */
.login-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Card de boas-vindas */
.login-welcome {
    display: none;
    color: white;
    padding: 2rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .login-welcome {
        display: block;
    }
}

.welcome-content {
    max-width: 400px;
    margin: 0 auto;
}

.welcome-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.welcome-icon i {
    font-size: 48px;
    color: white;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.welcome-features {
    text-align: left;
    margin-top: 2rem;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.welcome-feature:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.welcome-feature i {
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.welcome-feature span {
    color: white;
    font-weight: 500;
}

/* Card de login */
.login-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 450px;
    margin: 0 auto;
}

/* Header do card */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.login-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.login-subtitle i {
    color: var(--secondary);
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Grupos de formulário */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--label-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-label i {
    color: var(--primary);
    font-size: 14px;
}

/* Inputs específicos do login */
.login-input {
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-lg);
    background: var(--input-bg);
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
    width: 100%;
}

.login-input:focus {
    outline: none;
    border-color: var(--input-focus);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-input.error {
    border-color: var(--input-error);
    background: #fef2f2;
}

/* Grupo com ícone */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.input-with-icon .login-input:focus + i {
    color: var(--input-focus);
}

.input-with-icon .login-input.error + i {
    color: var(--input-error);
}

/* Mensagens de validação */
.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.25rem;
}

.validation-message.error {
    color: var(--input-error);
}

.validation-message.success {
    color: var(--input-success);
}

.validation-message i {
    font-size: 14px;
}

/* Lembrar de mim e esqueci senha */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.remember-label {
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
}

.forgot-password {
    font-size: 0.95rem;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botão de login */
.btn-login {
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login i {
    font-size: 20px;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.divider span {
    padding: 0 1rem;
}

/* Login social */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social-login {
    padding: 0.875rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-social-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
    background: #fef2f2;
}

.btn-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    background: #eff6ff;
}

.btn-social-login i {
    font-size: 20px;
}

/* Cadastro */
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
}

.register-link p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-register {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

/* Mensagens do sistema */
.login-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

.login-message.show {
    display: flex;
}

.login-message.error {
    background: #fef2f2;
    color: var(--input-error);
    border: 1px solid #fecaca;
}

.login-message.success {
    background: #f0fdf4;
    color: var(--input-success);
    border: 1px solid #bbf7d0;
}

.login-message i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Toggle password */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

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

.password-toggle i {
    font-size: 18px;
}

/* Animações */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
        margin-top: 70px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .welcome-feature {
        padding: 0.75rem;
    }
    
    .login-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: var(--gray-900);
        color: white;
    }
    
    .login-header h1,
    .login-header p,
    .form-label,
    .remember-label {
        color: white;
    }
    
    .login-input {
        background: var(--gray-800);
        border-color: var(--gray-700);
        color: white;
    }
    
    .login-input:focus {
        background: var(--gray-800);
    }
    
    .divider::before,
    .divider::after {
        background: var(--gray-700);
    }
    
    .btn-social-login {
        background: var(--gray-800);
        border-color: var(--gray-700);
        color: white;
    }
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}