/* Enhanced Login Styles - Modern E-commerce Style */
/* As páginas de autenticação mantêm sempre as cores originais */
:root {
    color-scheme: light;
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff4757;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #d63031;
    --text-primary: #2c3e50;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --border-color: #dfe6e9;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.24);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-family);
    background: #e5e5e5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
    }
}



/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

/* Main Login Wrapper */
.login-wrapper {
    display: flex;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    width: 100%;
    min-height: 550px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

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

/* Logo Section */
.logo-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    color: var(--secondary-color);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.logo {
    display: inline-block;
    width: 90px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.features-list {
    position: relative;
    z-index: 2;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

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

.feature-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Login Container */
.login-container {
    flex: 1.2;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 450px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Social Login */
.social-login-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.social-btn.google:hover {
    border-color: #4285f4;
    color: #4285f4;
}

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

/* Divider */
.divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-white);
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Form Styles */
.login-form {
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.input-wrapper input:focus + i {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 400;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    font-size: 0.7rem;
    font-weight: bold;
}

.forgot-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-color);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Styles */
.message {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Register Section */
.register-section {
    text-align: center;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.register-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.register-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-section a:hover {
    text-decoration: underline;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.8rem;
}

.badge i {
    color: var(--success-color);
}

/* Footer */
.login-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright p {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
        display: block;
        background: var(--bg-white);
    }
    
    .login-wrapper {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        animation: none;
    }
    
    .logo-section {
        padding: 60px 20px 40px;
        min-height: auto;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .features-list {
        display: none;
    }
    
    .login-container {
        padding: 40px 20px;
        max-width: 100%;
        background: white;
        margin-top: -20px;
        border-radius: 30px 30px 0 0;
        position: relative;
        z-index: 5;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .social-login-container {
        flex-direction: row; /* Keep social buttons side by side if possible */
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .login-footer {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        background: transparent;
        box-shadow: none;
        margin-top: 20px;
        padding-bottom: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        border-radius: 15px;
    }
    
    .logo-section,
    .login-container {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .input-wrapper input {
        padding: 12px 12px 12px 40px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 0.95rem;
    }
}




/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Focus States */
.input-wrapper:focus-within {
    transform: translateY(-1px);
}

/* Hover Effects */
.input-wrapper:hover {
    border-color: var(--text-light);
}

.input-wrapper:hover input {
    border-color: var(--text-light);
}

/* Animation Enhancements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.login-btn:active {
    animation: pulse 0.3s ease-in-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
