:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/dots-pattern.png') repeat;
    opacity: 0.05;
    z-index: -1;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

.auth-card {
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    min-height: 600px;
}

.auth-illustration {
    flex: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.9));
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 47, 85, 0.8) 0%, transparent 90%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-illustration img {
    width: 100%;
    max-width: 350px;
    z-index: 1;
}

.auth-content {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.logo-brand img {
    height: 50px;
    margin-right: 1rem;
}

.logo-brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    margin-bottom: 1.5rem;
}

.auth-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.input-icon input {
    padding-left: 45px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-check label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--danger-color);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--success-color);
    color: #6ee7b7;
}

.alert svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .auth-illustration {
        display: none; /* Remove a ilustração em mobile */
    }
    
    .auth-content {
        padding: 2rem 1.5rem;
    }
    
    .logo-brand {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .logo-brand img {
        height: 100px; /* Logo maior em mobile */
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .logo-brand h1 {
        font-size: 1.5rem;
    }
    
    .auth-title h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.9rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .auth-card {
        flex-direction: column;
    }
    
    .auth-illustration {
        padding: 2rem;
    }
    
    .auth-content {
        padding: 2rem;
    }
    
    .logo-brand img {
        display: none;
    }
}

@media (min-width: 1024px) {
    .logo-brand img {
        display: none;
    }
}