/**
 * Concerto ao Órgão - Estilo da Tela de Login
 */

:root {
    --primary: #1a5f2a;
    --primary-light: #2d8a42;
    --gold: #c9a84c;
    --gold-light: #dfc06e;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --success: #22c55e;
    --success-bg: #f0fdf4;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 580px;
}

/* ===== Lado esquerdo - Branding ===== */
.login-branding {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.login-branding::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--gold);
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.brand-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.brand-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 280px;
    margin: 0 auto;
}

/* ===== Lado direito - Formulário ===== */
.login-form-side {
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

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

.login-form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 36px;
}

/* ===== Alertas ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-error svg {
    stroke: var(--error);
}

/* ===== Formulário ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* ===== Botão ===== */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.35);
}

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

.btn-login svg {
    width: 18px;
    height: 18px;
}

/* ===== Footer ===== */
.login-footer {
    margin-top: 36px;
    text-align: center;
}

.login-footer p {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .login-branding {
        padding: 40px 30px;
    }
    
    .brand-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .brand-subtitle {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .brand-divider {
        margin-bottom: 16px;
    }
    
    .brand-text {
        font-size: 14px;
    }
    
    .login-form-side {
        padding: 40px 30px;
    }
    
    .login-form-container h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .login-branding,
    .login-form-side {
        padding: 30px 24px;
    }
    
    .login-form-container h2 {
        font-size: 24px;
    }
}
