* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background: #07074B;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* ANIMAÇÃO DE FUNDO */
body::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(20, 223, 250, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(21, 78, 250, 0.15) 0%, transparent 40%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Container Principal */
.login-wrapper {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  max-height: 90vh;
  width: 100%;
  background: #090941;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.7s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.presentation-side {
  background: linear-gradient(135deg, #154EFA 0%, #14DFFA 100%);
  padding: 50px 45px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos animados */
.presentation-side::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.presentation-side::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(7, 7, 75, 0.2);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

.presentation-content {
  position: relative;
  z-index: 2;
}

.logo-section {
  margin-bottom: 40px;
}

.logo-text {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-tagline {
  font-size: 14px;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.main-message h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-message p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 35px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon i {
  font-size: 20px;
  background: linear-gradient(135deg, #154EFA 0%, #14DFFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.benefit-text p {
  font-size: 13px;
  opacity: 0.92;
  margin: 0;
  line-height: 1.4;
}

.support-link {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 25px;
}

.support-link a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  transition: all 0.3s;
}

.support-link a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* ✨ LADO DIREITO - LOGIN */
.login-side {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #090941;
}

.login-header {
  margin-bottom: 35px;
}

.login-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.login-header p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #154EFA;
}

.form-group input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  color: #0F0F29;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(20, 79, 250, 0.05);
}

.form-group input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(21, 78, 250, 0.3);
}

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

.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 18px;
  padding: 6px;
  transition: all 0.3s;
}

.toggle-password:hover {
  color: #154EFA;
  transform: translateY(-50%) scale(1.1);
}

.password-field input {
  padding-right: 50px !important;
}

.form-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.forgot-password {
  font-size: 14px;
  color: #14DFFA;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.forgot-password:hover {
  color: white;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: #154EFA;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 6px 20px rgba(21, 78, 250, 0.35);
  letter-spacing: 0.3px;
}

.btn-login:hover {
  background: #3367d6;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(21, 78, 250, 0.5);
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.signup-link {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  margin-top: 30px;
  padding: 20px;
  background: rgba(20, 223, 250, 0.1);
  border: 2px solid rgba(20, 223, 250, 0.3);
  border-radius: 16px;
  transition: all 0.3s;
}

.signup-link:hover {
  background: rgba(20, 223, 250, 0.2);
  border-color: rgba(20, 223, 250, 0.6);
}

.signup-link a {
  color: #14DFFA;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  transition: all 0.3s;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
}

.signup-link a:hover {
  color: white;
  text-shadow: 0 0 10px rgba(20, 223, 250, 0.6);
  transform: scale(1.05);
}

/* Mensagens de erro */
.error-container {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.error-message {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.error-message i {
  color: #ff6b6b;
  font-size: 16px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Responsive */
@media (max-width: 1024px) {
  .login-wrapper {
    max-width: 90vw;
    max-height: auto;
  }

  .presentation-side {
    padding: 40px 35px;
  }

  .login-side {
    padding: 40px 35px;
  }

  .login-header h1 {
    font-size: 28px;
  }

  .logo-text {
    font-size: 32px;
  }

  .main-message h2 {
    font-size: 28px;
  }

  .signup-link {
    font-size: 14px;
    padding: 16px;
    margin-top: 25px;
  }

  .signup-link a {
    font-size: 17px;
  }
}

@media (max-width: 969px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 20px;
  }

  .presentation-side {
    display: flex;
    padding: 35px 30px;
    min-height: 200px;
  }

  .presentation-content {
    flex: 1;
  }

  .logo-section {
    margin-bottom: 25px;
  }

  .logo-text {
    font-size: 28px;
  }

  .main-message h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .main-message p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .benefits-list {
    gap: 10px;
  }

  .benefit-item {
    padding: 12px;
  }

  .benefit-text h3 {
    font-size: 14px;
  }

  .benefit-text p {
    font-size: 12px;
  }

  .support-link {
    margin-top: 15px;
  }

  .support-link a {
    font-size: 12px;
    padding: 8px 16px;
  }

  .login-side {
    padding: 30px;
    justify-content: flex-start;
    padding-top: 20px;
  }

  .login-header {
    margin-bottom: 25px;
  }

  .login-header h1 {
    font-size: 26px;
  }

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

  .signup-link {
    margin-top: 20px;
    padding: 16px;
    font-size: 13px;
  }

  .signup-link a {
    font-size: 16px;
  }

}

/* ✅ TABLET / IPAD - PERMITIR SCROLL */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-items: flex-start !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .login-wrapper {
    max-height: none !important;
    min-height: auto !important;
  }
}

/* ✅ TABLET PORTRAIT */
@media screen and (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-items: flex-start !important;
    padding: 30px 20px !important;
  }

  .login-wrapper {
    max-height: none !important;
    overflow: visible !important;
  }

  .presentation-side {
    min-height: auto !important;
  }

  .login-side {
    min-height: auto !important;
  }
}

/* ✅ IPAD ESPECÍFICO */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  body {
    overflow-y: auto !important;
    min-height: 100vh !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    border-radius: 16px;
    max-height: none;
  }

  .presentation-side {
    padding: 25px 20px;
    min-height: 150px;
  }

  .logo-text {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .logo-tagline {
    font-size: 12px;
  }

  .main-message h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .main-message p {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .benefit-item {
    padding: 12px;
    gap: 10px;
  }

  .benefit-icon {
    width: 38px;
    height: 38px;
  }

  .benefit-icon i {
    font-size: 18px;
  }

  .benefit-text h3 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .benefit-text p {
    font-size: 11px;
  }

  .login-side {
    padding: 25px 20px;
  }

  .login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .login-header p {
    font-size: 13px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input {
    padding: 12px 16px 12px 45px;
    font-size: 14px;
  }

  .input-icon {
    font-size: 16px;
    left: 14px;
  }

  .toggle-password {
    right: 14px;
    font-size: 16px;
  }

  .forgot-password {
    font-size: 12px;
  }

  .btn-login {
    padding: 14px;
    font-size: 15px;
  }

  .divider span {
    font-size: 12px;
  }

  .signup-link {
    font-size: 12px;
    margin-top: 18px;
    padding: 14px;
  }

  .signup-link a {
    font-size: 15px;
  }

}

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

  .login-wrapper {
    border-radius: 16px;
  }

  .presentation-side {
    padding: 20px 15px;
    min-height: auto;
  }

  .logo-section {
    margin-bottom: 15px;
  }

  .logo-text {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .logo-tagline {
    font-size: 11px;
  }

  .main-message h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .main-message p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .benefits-list {
    gap: 8px;
  }

  .benefit-item {
    padding: 10px;
    gap: 10px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .benefit-icon i {
    font-size: 16px;
  }

  .benefit-text h3 {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .benefit-text p {
    font-size: 10px;
    line-height: 1.3;
  }

  .support-link a {
    font-size: 11px;
    padding: 8px 14px;
    gap: 6px;
  }

  .login-side {
    padding: 20px 15px;
  }

  .login-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .login-header p {
    font-size: 12px;
  }

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

  .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .form-group input {
    padding: 11px 14px 11px 42px;
    font-size: 13px;
    border-radius: 20px;
  }

  .input-icon {
    font-size: 16px;
    left: 12px;
  }

  .toggle-password {
    right: 12px;
    font-size: 16px;
  }

  .form-footer {
    margin-bottom: 18px;
  }

  .forgot-password {
    font-size: 11px;
  }

  .btn-login {
    padding: 12px;
    font-size: 14px;
    border-radius: 20px;
  }

  .error-container {
    margin-top: 15px;
    min-height: auto;
  }

  .error-message {
    padding: 10px 12px;
    font-size: 12px;
    gap: 8px;
  }

  .error-message i {
    font-size: 14px;
  }

  .divider {
    margin: 18px 0;
    gap: 15px;
  }

  .divider span {
    font-size: 11px;
  }

  .signup-link {
    font-size: 11px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
  }

  .signup-link a {
    font-size: 14px;
    padding: 6px 12px;
  }

}

@media (max-width: 360px) {
  .login-wrapper {
    border-radius: 12px;
  }

  .logo-text {
    font-size: 18px;
  }

  .main-message h2 {
    font-size: 16px;
  }

  .login-header h1 {
    font-size: 20px;
  }

  .form-group input {
    padding: 10px 12px 10px 40px;
    font-size: 12px;
  }

}

/* ✅ FORÇAR BOTÃO FLUTUANTE NO MOBILE - ÚLTIMA REGRA */
