/* Login/Register - Tema claro (branco) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
}

/* Container Principal */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

/* Seção Esquerda - Branding */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

/* Padrão de Fundo Sutil */
.brand-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.7;
    pointer-events: none;
}

/* Glow Effect (sutil no tema claro) */
.brand-section::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.logo-container video,
.logo-container img {
    display: block;
    object-fit: contain;
    border: none;
    outline: none;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 2px;
}

.brand-headline {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    font-style: italic;
    text-transform: uppercase;
}

.brand-description {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.feature-buttons {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.feature-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.copyright {
    font-size: 12px;
    color: #64748b;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* Seção Direita - Login Form */
.login-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-box {
    width: 100%;
    max-width: 440px;
    overflow: visible;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 40px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #2563EB;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* Telefone: select país + número */
.form-group-phone {
    overflow: visible;
}
.phone-country-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.phone-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.phone-row:focus-within {
    border-color: #2563EB;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.phone-select {
    flex: 0 0 auto;
    min-width: 0;
    width: 160px;
    padding: 14px 12px;
    background: #f1f5f9;
    border: none;
    border-right: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.phone-select:hover,
.phone-select:focus {
    background-color: #e2e8f0;
}
.phone-dial {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}
.phone-number {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.phone-number::placeholder {
    color: #94a3b8;
}
.phone-format-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}
.phone-error-msg {
    display: block;
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
}
.required-asterisk {
    color: #b91c1c;
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login svg {
    width: 18px;
    height: 18px;
}

/* Footer do Login */
.login-footer {
    margin-top: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.register-text {
    font-size: 14px;
    color: #64748b;
}

.register-link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #1D4ED8;
}

.forgot-link {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #475569;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }
    
    .brand-section {
        padding: 40px;
        min-height: 300px;
        align-items: center;
        text-align: center;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    }

    .brand-headline {
        font-size: 32px;
    }

    .brand-description {
        display: none;
    }
    
    .login-section {
        padding: 40px 20px;
        background: #ffffff;
    }
    
    .feature-buttons {
        display: none;
    }
}
