﻿/* ========================================
   LOGIN PAGE VARIABLES (Dark Theme)
   ======================================== */
:root {
    /* Background Colors */
    --bg-color: #0F0F0F;
    --card-color: #1A1A1A;
    --text-color: #F0F0F0;
    --text-faded: #888;
    --primary-color: #8A2BE2;
    --primary-hover: #9F4BFF;
    /* Gradientes */
    --gradient-1-start: #1A0F2B;
    --gradient-1-end: #0F0F0F;
    --gradient-2-start: #0F0F0F;
    --gradient-2-end: #1A0F2B;
    /* Cores alternativas para seções */
    --section-alt-bg: #151515;
    /* Tipografia */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Status Colors */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #1A0F2B 0%, #8A2BE2 50%, #1A0F2B 100%);
    --grad-accent: linear-gradient(135deg, #8A2BE2 0%, #9F4BFF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-left: calc(var(--nav-width-desktop) + (var(--nav-padding-desktop) * 2) + 30px);
    position: relative;
    overflow: hidden;
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--grad-primary);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--grad-accent);
    bottom: -100px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--grad-success);
    top: 50%;
    left: 10%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

/* LEFT SIDE - ILLUSTRATION */
.login-illustration {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.illustration-card {
    background: var(--card-color);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

    .illustration-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--grad-primary);
    }

.illustration-icon {
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    width: max-content;
    padding: 15px;
    color: white;
    margin-bottom: 16px;
}

.illustration-icon span{
    color: var(--primary-color);
    font-size: 40px;
}

.illustration-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.illustration-text {
    font-size: 14px;
    color: var(--text-faded);
    line-height: 1.6;
}

/* RIGHT SIDE - FORM */
.login-card {
    background: var(--card-color);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.25);
    padding: 48px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 300px;
        height: 300px;
        background: var(--grad-primary);
        opacity: 0.05;
        border-radius: 50%;
    }

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-icon {
    border-radius: 20px;
    display: flex;
    width: max-content;
    padding: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.login-icon span{
    color: var(--primary-color);
    font-size: 50px;
}

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

    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-faded);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faded);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 40px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--section-alt-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-text-fill-color: var(--text-color);
}

    .form-input:focus {
        background: var(--bg-color);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.2);
    }

        .form-input:focus + .input-icon {
            color: var(--primary-color);
        }

    .form-input.error {
        border-color: var(--danger);
        background: rgba(239, 68, 68, 0.1);
    }

    /* Fix autofill background color - more aggressive for dark theme */
    .form-input:-webkit-autofill,
    .form-input:-webkit-autofill:hover,
    .form-input:-webkit-autofill:focus,
    .form-input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #F0F0F0 !important;
        transition: background-color 5000s ease-in-out 0s;
        box-shadow: inset 0 0 20px 20px #151515 !important;
        background-color: #151515 !important;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #F0F0F0 !important;
        transition: background-color 5000s ease-in-out 0s;
        box-shadow: inset 0 0 20px 20px #151515 !important;
        background-color: #151515 !important;
    }

.error-message {
    font-size: 13px;
    color: var(--danger);
    margin-top: 8px;
    padding-left: 4px;
}

    .error-message.show {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-faded);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

    .forgot-link:hover {
        opacity: 0.8;
    }

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    color: white;
    background: var(--grad-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(138, 43, 226, 0.5);
    }

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

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #333;
    }

.divider-text {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-faded);
}

.signup-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-faded);
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

    .signup-link:hover {
        opacity: 0.8;
    }



/* RESPONSIVE */

@media (max-width: 1480px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .login-illustration {
        position: static;
    }

    .illustration-card {
        display: none;
    }
}

@media (max-width: 1024px) {



    .main-content {
        padding-left: 20px;
    }
}

@media (max-width: 640px) {
    .header-nav {
        display: none;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-title {
        font-size: 24px;
    }

    .form-input {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
