/* Tema Laranja - Login Page */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary: #ff9500;
    --accent: #ffb347;
    --orange-gradient: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    --orange-light: rgba(255, 107, 53, 0.1);
    --orange-medium: rgba(255, 107, 53, 0.2);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fef7f0 0%, #fed7aa 50%, #ffb347 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Efeitos de fundo animados */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.1) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Container principal */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.1);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    display: flex;
    position: relative;
}

/* Lado esquerdo - Formulário */
.login-form-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Lado direito - Branding */
.login-brand-side {
    flex: 1;
    background: var(--orange-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.brand-logo {
    width: 80px; height: 80px; background: rgba(255,255,255,0.2);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; margin-bottom: 2rem; backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.brand-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.1) }
.brand-subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6 }

.login-header { text-align: center; margin-bottom: 2.5rem; }
.login-title { font-size: 2rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem }
.login-subtitle { color: #64748b; font-size: 1rem }

.form-floating { margin-bottom: 1.5rem }
.form-control {
    border: 2px solid rgba(255, 107, 53, 0.1); border-radius: 12px; padding: 1rem; font-size: 1rem;
    transition: all 0.3s ease; background: rgba(254, 247, 240, 0.5);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--orange-light); background: white; }
.form-floating > label { color: #64748b; font-weight: 500 }

.btn-login {
    background: var(--orange-gradient); border: none; border-radius: 12px; padding: 1rem 2rem;
    font-size: 1rem; font-weight: 600; color: white; width: 100%; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.btn-login:active { transform: translateY(0) }

.login-links { text-align: center; margin-top: 1.5rem }
.login-links a { color: var(--primary); text-decoration: none; font-weight: 500; transition: all 0.2s ease }
.login-links a:hover { color: var(--primary-dark); text-decoration: underline }

.form-check-input:checked { background-color: var(--primary); border-color: var(--primary) }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--orange-light) }

.divider { display: flex; align-items: center; margin: 2rem 0; color: #64748b }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 107, 53, 0.2) }
.divider span { padding: 0 1rem; font-size: 0.9rem }

.social-login { display: flex; gap: 1rem; margin-bottom: 2rem }
.btn-social {
    flex: 1; padding: 0.75rem; border: 2px solid rgba(255, 107, 53, 0.1); border-radius: 12px;
    background: white; color: #64748b; text-decoration: none; display: flex; align-items: center;
    justify-content: center; gap: 0.5rem; font-weight: 500; transition: all 0.2s ease;
}
.btn-social:hover { border-color: var(--primary); color: var(--primary); background: var(--orange-light); transform: translateY(-1px) }

@media (max-width: 768px) {
    .login-container { flex-direction: column; margin: 1rem; min-height: auto }
    .login-brand-side { order: -1; padding: 2rem; min-height: 200px }
    .login-form-side { padding: 2rem }
    .brand-title { font-size: 2rem }
    .login-title { font-size: 1.5rem }
    .social-login { flex-direction: column }
}

.fade-in { animation: fadeIn 0.8s ease-out }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } }

.btn-login.loading { position: relative; color: transparent }
.btn-login.loading::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: white; border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.alert-custom {
    border: none; border-radius: 12px; padding: 1rem; margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary); background: var(--orange-light); color: var(--primary-dark);
}

/* Corrige lista de features (sem bullets, com ícone redondo e alinhado) */
.login-brand-side .features-list{
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  width: min(420px, 90%);
  text-align: left;
}

.login-brand-side .features-list li{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .6rem 0;
  line-height: 1.4;
  color: #fff;
}

.login-brand-side .features-list i{
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .95rem;
}
