/* public/perfil/login/styles.css - Login Page Specific Styles */

/* Promoção Independência no Footer de Login */
.promocao-independencia {
  background: linear-gradient(135deg, #009B3A 0%, #FFDF00 100%);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 155, 58, 0.3);
}

.promocao-titulo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.promocao-info {
  font-size: 1rem;
  margin-bottom: 8px;
}

.promocao-prazo {
  font-size: 0.9rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.btn-promocao-login {
  display: inline-block;
  background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
  color: #009B3A !important;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.btn-promocao-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Classe degradê Brasil reutilizada */
.texto-degrade-brasil {
  background: linear-gradient(135deg, #009B3A 0%, #FFDF00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: bold;
  display: inline-block;
}

/* Fallback para navegadores antigos */
@supports not (background-clip: text) {
  .texto-degrade-brasil {
    background: none;
    color: #009B3A;
    font-weight: bold;
  }
}

/* Reset e variáveis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #17e1a8;
  --primary-dark: #14c594;
  --primary-light: rgba(23, 225, 168, 0.1);
  --secondary-color: #6c757d;
  --danger-color: #ff4b5c;
  --success-color: #28a745;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --bg-light: #f8f9fa;
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--bg-light);
  /*line-height: 1.6;*/
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  text-align: center;
}

.login-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
}

.login-card h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.75rem;
}

.login-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.login-error {
  background-color: rgba(255, 75, 92, 0.1);
  color: var(--danger-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23, 225, 168, 0.2);
  outline: none;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ✅ NOVO: Login Footer */
.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.signup-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
  .login-container {
    padding: 10px;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
  }
  
  .login-logo img {
    max-width: 150px;
  }
  
  .login-card h2 {
    font-size: 1.5rem;
  }
}

/* Loading state */
.loading {
  pointer-events: none;
}

.loading .login-btn {
  opacity: 0.8;
}

/* Success state animation */
.login-success {
  animation: success-pulse 0.6s ease-in-out;
}

@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Error shake animation */
.login-error-shake {
  animation: error-shake 0.5s ease-in-out;
}

@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}