/* ================================================
   TELA DE LOGIN - MOBILIZA
   Design responsivo mobile-first
   ================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================================
   CONTAINER PRINCIPAL
   ================================================ */

.login-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #0d5570 0%, #0f5f7a 50%, #106685 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}

.login-content {
  width: 100%;
  max-width: 300px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================================================
   LOGO
   ================================================ */

.login-logo {
  text-align: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px;
}

.login-logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ================================================
   FORMULÁRIO
   ================================================ */

.login-form-wrapper {
  width: 100%;
  max-width: 300px;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #2c3e50;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.form-group input:focus {
  box-shadow: 0 0 0 3px rgba(131, 231, 219, 0.3);
}

.form-group input::placeholder {
  color: #95a5a6;
}

/* ================================================
   ESQUECI MINHA SENHA
   ================================================ */

.forgot-password {
  text-align: center;
  margin: 8px 0 20px;
}

.forgot-password a {
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.forgot-password a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ================================================
   BOTÃO ENTRAR
   ================================================ */

.btn-login {
  display: block;
  width: auto;
  max-width: 140px;
  margin: 0 auto;
  padding: 12px 36px;
  background: #83e7db;
  border: none;
  border-radius: 6px;
  color: #0a3d56;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: capitalize;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  background: #6dd4c8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(131, 231, 219, 0.4);
}

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

/* ================================================
   RODAPÉ DO FORMULÁRIO
   ================================================ */

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

.login-footer p {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

.login-footer a {
  color: #83e7db;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.login-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ================================================
   CENTRAL DE AJUDA
   ================================================ */

.help-center {
  position: fixed;
  bottom: 50px;
  left: 0;
  right: 0;
  text-align: center;
  padding-top: 0;
  border-top: none;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #83e7db;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.help-link:hover {
  opacity: 0.8;
}

.help-link svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* ================================================
   RODAPÉ DA PÁGINA
   ================================================ */

.page-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  gap: 16px;
}

.page-footer .footer-logo {
  width: 70px;
  height: auto;
  opacity: 1;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.page-footer .footer-logo-desktop {
  display: none;
}

.page-footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-align: left;
}

/* ================================================
   ALERTAS
   ================================================ */

.alert {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-success {
  background-color: rgba(131, 231, 219, 0.2);
  color: #ffffff;
  border: 1px solid rgba(131, 231, 219, 0.4);
}

.alert-error {
  background-color: rgba(231, 76, 60, 0.2);
  color: #ffffff;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

/* ================================================
   RECUPERAÇÃO DE SENHA
   ================================================ */

.forgot-password-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 30px;
  text-align: center;
  letter-spacing: 0.3px;
}

.forgot-password-info {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 20px;
  font-weight: 300;
  text-align: center;
}

/* ================================================
   RESPONSIVO - DESKTOP
   ================================================ */

@media (min-width: 768px) {
  .login-container {
    flex-direction: row;
    padding: 0;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #0d5570 0%, #0f5f7a 50%, #106685 100%);
  }

  .login-content {
    width: 60%;
    max-width: none;
    min-height: 100vh;
    background: none;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .login-logo {
    position: static;
    margin-top: 0;
    margin-bottom: 0;
    max-width: none;
    width: 40%;
  }

  .login-logo img {
    width: 100%;
    max-width: 100%;
  }

  .login-form-wrapper {
    width: 40%;
    max-width: none;
    background: #f5f5f0;
    padding: 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    border-top-left-radius: 200px;
  }

  .login-form-wrapper::before {
    content: 'LOGIN';
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #0d5570;
    margin-bottom: 60px;
    letter-spacing: 1.5px;
  }

  .form-group {
    margin-bottom: 30px;
  }

  .form-group label {
    display: none;
  }

  .form-group input {
    padding: 20px 24px 20px 60px;
    font-size: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .form-group input::placeholder {
    color: #aaa;
  }

  .form-group:first-of-type input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 22px;
  }

  .form-group:last-of-type input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 22px;
  }

  .forgot-password {
    text-align: right;
    margin: -15px 0 40px;
  }

  .forgot-password a {
    color: #0d5570;
    font-size: 14px;
    font-weight: 500;
  }

  .btn-login {
    width: 100%;
    max-width: none;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    background: #0d5570;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 16px rgba(13, 85, 112, 0.3);
  }

  .btn-login:hover {
    background: #0a3d56;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 85, 112, 0.4);
  }

  .login-footer {
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
  }

  .login-footer p {
    font-size: 14px;
    color: #666;
    text-align: center;
  }

  .login-footer a {
    color: #0d5570;
    font-weight: 500;
  }

  .help-center {
    display: none;
  }

  .page-footer {
    position: absolute;
    top: 90vh;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    padding: 24px 0;
    border-top: 1px solid #ddd;
    background: #f5f5f0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .page-footer .footer-logo-mobile {
    display: none;
  }

  .page-footer .footer-logo-desktop {
    display: block;
    width: 80px;
    height: auto;
    filter: none;
    opacity: 1;
    flex-shrink: 0;
    object-fit: contain;
  }

  .page-footer p {
    font-size: 11px;
    color: #666;
    text-align: left;
    white-space: nowrap;
    margin: 0;
    margin-top: 4px;
  }

  .page-footer p a {
    color: #00E8DA;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
  }

  .page-footer p a:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  .forgot-password-info {
    color: #666;
    font-size: 13px;
    margin: -10px 0 30px;
  }

  .forgot-password-title {
    color: #0d5570;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 60px;
    text-align: left;
    letter-spacing: 1.5px;
  }
}

@media (min-width: 1024px) {
  .login-logo {
    max-width: 600px;
  }

  .login-form-wrapper {
    padding: 0 140px;
  }

  .page-footer {
    padding: 24px 0;
  }
}
