/* Styles for login page inspired by bubbly-react */
:root{
  --purple-600: #6f4ff3;
  --purple-500: #7c3aed;
  --muted: #6b7280;
  --card-bg: #ffffff;
}

/* Auth page full viewport reset */
body.auth-page {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body.auth-page .auth-main {
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

/* Remove header-hero padding for login */
body.auth-page .header-hero.login-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.auth-page .header-card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  max-width: none;
}

.login-outer{
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#f7f9fc 0%, #ffffff 100%);
  padding: 40px 20px;
  box-sizing: border-box;
}

/* ensure the inner card doesn't get pushed down by top page chrome */
main, .main-content { display:flex; align-items:center; }

.login-wrap{
  width: calc(100% - 80px);
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
  box-shadow: 0 18px 40px rgba(10,20,50,0.06);
  background: transparent;
}

/* Left card */
.login-card{
  background: var(--card-bg);
  padding: 28px 34px;
}
.login-card .card-head{
  font-weight: 700;
  color: var(--purple-500);
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.login-card .brand{
  display:flex;align-items:center;justify-content:flex-start;margin-bottom:18px;
}
.login-card .brand img{height:42px;display:block}
.login-card h1{font-size:26px;margin:6px 0 8px;color:#111}
.login-card p.lead{color:var(--muted);margin-bottom:18px}

.form-group{margin-bottom:14px}
.form-control.custom{
  border-radius:12px;border:1px solid #e6e9ee;padding:12px 14px;background:#fff;color:#111;
}
.form-control.custom:focus{box-shadow:0 6px 18px rgba(111,79,243,0.12);border-color:var(--purple-600);outline:none}

.form-row{display:flex;align-items:center;justify-content:space-between}
.form-check small{color:var(--muted)}

.btn-submit{
  background: linear-gradient(90deg,var(--purple-500) 0%, var(--purple-600) 100%);
  color:#fff;border:none;padding:12px;border-radius:10px;font-weight:700;box-shadow:0 8px 24px rgba(111,79,243,0.16);
}
.btn-submit:hover{filter:brightness(1.03);transform:translateY(-1px)}

.flash-list{margin-bottom:12px}
.flash-item{padding:8px 12px;border-radius:8px;font-size:0.9rem}
.flash-item.success{background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0}
.flash-item.error{background:#fff1f2;color:#9f1239;border:1px solid #fecaca}
.flash-item.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}

/* Right panel */
.login-illustration{
  padding: 36px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align:center;
}
.login-illustration .illustration{max-width:320px;margin-bottom:20px}
.login-illustration h3{font-size:26px;color:#fff;margin:8px 0;font-weight:800;text-shadow: 0 1px 2px rgba(0,0,0,0.1)}
.login-illustration p{color:rgba(255,255,255,0.9);max-width:380px;text-shadow: 0 1px 2px rgba(0,0,0,0.1)}

@media (max-width: 991.98px){
  .login-wrap{grid-template-columns:1fr}
  .login-illustration{display:none}
  .login-wrap{max-width:520px}
}

/* Background image alias requested: .img_fundo_login */
.img_fundo_login {
  background-image: url('../img/img_fundo_login.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Ensure the background covers the full viewport when applied to .login-outer */
.login-outer.img_fundo_login {
  min-height: 100vh;
  width: 100vw;
  position: relative;
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
  .login-outer {
    padding: 20px 15px;
  }
  
  .login-wrap {
    width: calc(100% - 30px);
  }
}
