:root {
    /* Colors */
    --bg-primary: #0f172a; /* Slate 900 */
    --bg-secondary: #1e293b; /* Slate 800 */
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b; /* Slate 500 */
    --text-light: #f8fafc;
    --accent-primary: #2563eb; /* Blue 600 */
    --accent-hover: #1d4ed8; /* Blue 700 */
    --accent-light: #eff6ff; /* Blue 50 */
    --border-color: #e2e8f0; /* Slate 200 */
    --input-bg: #f8fafc; /* Slate 50 */
    --input-focus: #bfdbfe; /* Blue 200 */

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* Layout */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Visual Section (Left) */
.login-visual {
    flex: 1;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2075&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: var(--text-light);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.brand-logo i {
    font-size: 2rem;
    color: #60a5fa; /* Blue 400 */
}

.visual-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.visual-text p {
    font-size: 1.125rem;
    color: #cbd5e1; /* Slate 300 */
    max-width: 80%;
    font-weight: 300;
}

/* Form Section (Right) */
.login-form-section {
    width: 480px;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-wrapper {
    width: 100%;
    max-width: 360px;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-field input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--input-bg);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.input-field input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--input-focus);
    background-color: var(--bg-card);
}

.input-field input:focus + i,
.input-field input:focus ~ i {
    color: var(--accent-primary);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

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

.toggle-password i {
    position: static;
    font-size: 1.125rem;
    pointer-events: auto;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-top: -0.5rem;
}

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

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.remember-me label {
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.btn-primary i {
    font-size: 1.25rem;
    transition: transform var(--transition-normal);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-footer a {
    font-weight: 600;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-visual {
        display: none; /* Esconde a imagem em telas menores para focar no formulário */
    }
    
    .login-form-section {
        width: 100%;
        height: 100vh;
        box-shadow: none;
    }
}
