@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --bg: #140b06;
  --bg-soft: #29120a;
  --panel: rgba(27, 13, 8, 0.78);
  --panel-border: rgba(255, 182, 119, 0.12);
  --text: #fff2e8;
  --muted: #deba9a;
  --primary: #f65801;
  --primary-hover: #d84a00;
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: 0.25s ease;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(147, 56, 12, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 117, 26, 0.08), transparent 28%),
    linear-gradient(135deg, #160904 0%, #281008 45%, #1c0b06 100%);
  color: var(--text);
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.login-wrapper {
  width: 100%;
  max-width: 1120px;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login-left {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 117, 26, 0.18), transparent 25%),
    radial-gradient(circle at 80% 75%, rgba(255, 194, 139, 0.10), transparent 30%),
    linear-gradient(160deg, #281007 0%, #140b06 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 48px;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  z-index: 0;
}

.smoke,
.smoke2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(50px);
}

.smoke {
  width: 240px;
  height: 240px;
  background: rgba(246, 88, 1, 0.14);
  top: -40px;
  left: -60px;
  animation: floatGlow 9s ease-in-out infinite;
}

.smoke2 {
  width: 200px;
  height: 200px;
  background: rgba(102, 192, 224, 0.08);
  bottom: -40px;
  right: -30px;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

.left-title {
  position: relative;
  z-index: 1;
  max-width: 430px;
}

.left-title h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.left-title p {
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(16, 7, 5, 0.72);
}

.login-card {
  width: 100%;
  max-width: 390px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 230px;
  display: block;
  margin: 0 auto 24px;
  object-fit: contain;
}

#loginForm {
  width: 100%;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  font-size: 0.97rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

input[type="email"] {
  margin-bottom: 12px;
}

input[type="password"] {
  margin-bottom: 16px;
}

input::placeholder {
  color: #d0b197;
}

input:focus {
  border-color: rgba(246, 88, 1, 0.55);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.login-opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}

.login-opcoes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-login {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #f16a14 0%, #d9570b 100%);
  color: #fff;
  padding: 14px 18px;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(246, 88, 1, 0.18);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-login:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ec620d 0%, #b84509 100%);
}

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

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }

  50% {
    transform: translateY(8px) translateX(10px) scale(1.04);
  }
}

@media (max-width: 900px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-left {
    min-height: 220px;
    padding: 28px;
  }

  .login-right {
    padding: 20px;
  }

  .left-title h1 {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .login-body {
    padding: 12px;
  }

  .login-card {
    padding: 24px 18px 20px;
  }

  .logo {
    max-width: 200px;
  }

  .login-left {
    min-height: 180px;
    padding: 22px 20px;
  }

  .left-title p {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
