:root {
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

body.light_theme {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --accent-color: #f6c23e;

    --bg-main: #ffffff;
    --bg-alt: #f8f9fc;
    --bg-card: #ffffff;
    --bg-login: whitesmoke;

    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);

    --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --gradient-btn: linear-gradient(45deg, #4361ee, #3a0ca3);
    --overlay-light: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.1);
    --highlight: rgba(255, 255, 255, 0.9);

    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --input-focus: #4e73df;
    --input-placeholder: #999999;
    --btn-google: #ffffff;
    --btn-google-text: #333333;
    --divider: #e0e0e0;
}

body.dark_theme {
    --primary-color: #5e83ef;
    --secondary-color: #2cd89a;
    --accent-color: #f6c23e;

    --bg-main: #121212;
    --bg-alt: #1a1a2e;
    --bg-card: #1e1e30;
    --bg-login: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(30, 30, 48, 0.95) 100%);

    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-light: #ffffff;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.3);

    --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --gradient-btn: linear-gradient(45deg, #4cc9f0, #4361ee);
    --overlay-light: rgba(255, 255, 255, 0.05);
    --overlay-dark: rgba(0, 0, 0, 0.3);
    --highlight: rgba(255, 255, 255, 0.1);

    --input-bg: #252540;
    --input-border: #333355;
    --input-focus: #5e83ef;
    --input-placeholder: #b0b0b0;
    --btn-google: #252540;
    --btn-google-text: #f0f0f0;
    --divider: #333355;
}

.login-section {
    min-height: calc(100vh - 100px);
    padding: 5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    background-color: var(--bg-main);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-card {
    background: var(--bg-login);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
    animation: fadeIn 0.8s ease forwards;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
}

.login-header {
    padding: 2rem 0 1rem;
    text-align: center;
    position: relative;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.login-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.login-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.login-form-container {
    padding: 0 2rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.login-form-container .requiredField {
    display: none !important;
}

.login-form-container .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: auto;
    font-size: 1rem;
    box-shadow: none;
}

.login-form-container .form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 0.2rem rgba(94, 131, 239, 0.25);
}

.login-form-container .form-control::placeholder {
    color: var(--input-placeholder);
}

.login-form-container .form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-form-container .form-check-input {
    margin-top: 0.3rem;
}

.login-form-container .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-form-container a[href*="password/reset"] {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.login-form-container a[href*="password/reset"]:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(45deg, #4cc9f0, #4361ee);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--divider);
}

.login-divider-text {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-google);
    color: var(--btn-google-text);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-google img {
    width: 20px;
    margin-right: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.3s;
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.login-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.login-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4cc9f0, #4361ee);
    opacity: 0.85;
}

.login-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 80%;
}

.login-image-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-image-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.login-error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .login-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 3rem 1rem;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .login-form-container {
        padding: 0 1.5rem 1.5rem;
    }
}