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

:root {
  --white: #ffffff;
  --light-bg: #f8fafc;
  --text-light: #64748b;
  --text-dark: #0f172a;
  --border-color: #cbd5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.login-box {
  width: 100%;
  min-height: 560px;
  display: flex;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(6, 26, 58, 0.35);
}

/* Lado esquerdo */
.login-left {
  width: 58%;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  padding: 60px;
  overflow: hidden;
}

.left-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 320px;
}

.left-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.left-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 400;
}

/* Formas decorativas */
.overlay-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: var(--white);
  top: -60px;
  left: -80px;
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: #123b75;
  bottom: -60px;
  right: -40px;
}

.shape-3 {
  width: 140px;
  height: 140px;
  background: #1d4f94;
  top: 120px;
  right: 90px;
}

/* Lado direito */
.login-right {
  width: 42%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: var(--white);
}

.form-box {
  width: 100%;
  max-width: 320px;
}

.form-box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* Labels */
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* Input customizado */
.custom-input-group {
  border-radius: 10px;
  overflow: hidden;
}

/* Ícone esquerdo */
.custom-input-group .input-group-text,
.password-toggle-left {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
}

/* Botão senha */
.password-toggle-left {
  cursor: pointer;
  transition: 0.3s;
}

.password-toggle-left:hover {
  background: var(--secondary-color) !important;
}

.password-toggle-left:focus {
  box-shadow: none !important;
}

/* Inputs */
.custom-input-group .form-control {
  height: 46px;
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  box-shadow: none;
  padding: 0 16px;
}

.custom-input-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.custom-input-group .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Opções */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.75rem;
}

.form-check-label {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
}

.options a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 500;
}

.options a:hover,
.register-link a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Botão */
.btn-signin {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.3s;
}

.btn-signin:hover {
  opacity: 0.96;
  color: var(--white);
}

/* Link cadastro */
.register-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

.register-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  color: var(--secondary-color);
}

/* Responsivo */
@media (max-width: 991px) {
  .login-box {
    flex-direction: column;
    min-height: auto;
  }

  .login-left,
  .login-right {
    width: 100%;
  }

  .login-left {
    min-height: 240px;
    padding: 40px 30px;
  }

  .left-content h1 {
    font-size: 1.9rem;
  }

  .login-right {
    padding: 35px 25px;
  }
}

@media (max-width: 576px) {
  body {
    padding: 12px;
  }

  .login-box {
    border-radius: 14px;
  }

  .login-left {
    min-height: 200px;
    padding: 30px 22px;
  }

  .left-content h1 {
    font-size: 1.55rem;
  }

  .left-content p {
    font-size: 0.85rem;
  }

  .form-box h2 {
    font-size: 1.7rem;
    margin-bottom: 22px;
  }

  .custom-input-group .form-control,
  .btn-signin {
    height: 44px;
    font-size: 0.85rem;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.login-image{
    width: 480px;
    margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px){

    .login-image{
       width: 250px;
       display: block;
       margin: 0 auto 20px auto;
    }

}