/*
 * Login Page - Minimalista Verde/Teal Theme
 * Design limpo, moderno e responsivo
 */

/* ============================================
   VARIÁVEIS CSS
   ============================================ */
:root {
  --primary-color: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --primary-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --bg-dark: #0f172a;
  --bg-dark-secondary: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --font-primary: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:focus {
  outline: none !important;
}

a:hover {
  text-decoration: none;
  color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

p {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

ul, li {
  margin: 0;
  list-style-type: none;
}

input, textarea {
  outline: none;
  border: none;
}

textarea:focus, input:focus {
  border-color: transparent !important;
}

input:focus::-webkit-input-placeholder { color: transparent; }
input:focus:-moz-placeholder { color: transparent; }
input:focus::-moz-placeholder { color: transparent; }
input:focus:-ms-input-placeholder { color: transparent; }

textarea:focus::-webkit-input-placeholder { color: transparent; }
textarea:focus:-moz-placeholder { color: transparent; }
textarea:focus::-moz-placeholder { color: transparent; }
textarea:focus:-ms-input-placeholder { color: transparent; }

input::-webkit-input-placeholder { color: var(--text-muted); }
input:-moz-placeholder { color: var(--text-muted); }
input::-moz-placeholder { color: var(--text-muted); }
input:-ms-input-placeholder { color: var(--text-muted); }

textarea::-webkit-input-placeholder { color: var(--text-muted); }
textarea:-moz-placeholder { color: var(--text-muted); }
textarea::-moz-placeholder { color: var(--text-muted); }
textarea:-ms-input-placeholder { color: var(--text-muted); }

button {
  outline: none !important;
  border: none;
  background: transparent;
  cursor: pointer;
}

iframe {
  border: none !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.txt1 {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.txt1 b {
  color: var(--primary-light);
  font-weight: 600;
}

.bo1 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hov1:hover {
  border-color: var(--primary-color);
}

/* ============================================
   LOGIN CONTAINER
   ============================================ */
.limiter {
  width: 100%;
  margin: 0 auto;
}

.container-login100 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.container-login100::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  opacity: 0.97;
}

/* Padrão geométrico sutil no fundo */
.container-login100::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================
   LOGIN WRAPPER
   ============================================ */
.wrap-login100 {
  width: 100%;
  max-width: 420px;
  background: var(--bg-dark-secondary);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease;
}

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

/* ============================================
   LOGIN FORM
   ============================================ */
.login100-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login100-form-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
  text-align: center;
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

/* ============================================
   LOGO / AVATAR
   ============================================ */
.login100-form-avatar {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.login100-form-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.wrap-input100 {
  position: relative;
  width: 100%;
  z-index: 1;
  margin-bottom: 16px;
}

.input100 {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-light);
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  height: 56px;
  border-radius: 14px;
  padding: 0 20px 0 54px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.input100:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.input100::placeholder {
  color: var(--text-muted);
}

/* Focus effect */
.focus-input100 {
  display: block;
  position: absolute;
  border-radius: 14px;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 0px 0px;
  color: rgba(13, 148, 136, 0.5);
}

.input100:focus + .focus-input100 {
  animation: anim-shadow 0.5s ease-in-out forwards;
}

@keyframes anim-shadow {
  to {
    box-shadow: 0px 0px 60px 20px;
    opacity: 0;
  }
}

/* Input icon */
.symbol-input100 {
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  position: absolute;
  border-radius: 14px;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-left: 20px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input100:focus + .focus-input100 + .symbol-input100 {
  color: var(--primary-light);
}

/* ============================================
   LOGIN BUTTON
   ============================================ */
.container-login100-form-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}

.login100-form-btn {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: white;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 25px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
  overflow: hidden;
}

.login100-form-btn::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.login100-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.login100-form-btn:hover::before {
  opacity: 1;
}

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

/* ============================================
   SOCIAL LOGIN BUTTONS
   ============================================ */
.btn-face, .btn-google {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc((100% - 12px) / 2);
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.btn-face {
  color: #4267B2;
}

.btn-face i {
  font-size: 18px;
  margin-right: 8px;
}

.btn-google img {
  width: 18px;
  margin-right: 8px;
}

.btn-face:hover, .btn-google:hover {
  border-color: var(--primary-color);
  background: rgba(13, 148, 136, 0.1);
}

/* ============================================
   VALIDATION ALERTS
   ============================================ */
.validate-input {
  position: relative;
}

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  max-width: 70%;
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 10px;
  padding: 8px 32px 8px 12px;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  pointer-events: none;
  font-family: var(--font-primary);
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alert-validate::after {
  content: "\f06a";
  font-family: FontAwesome;
  display: block;
  position: absolute;
  color: #ef4444;
  font-size: 14px;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
}

.alert-validate:hover:before {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 992px) {
  .alert-validate::before {
    visibility: visible;
    opacity: 1;
  }
}

/* ============================================
   reCAPTCHA
   ============================================ */
.g-recaptcha {
  margin: 16px 0;
  transform-origin: center;
}

@media (max-width: 400px) {
  .g-recaptcha {
    transform: scale(0.9);
    margin: 12px -10px;
  }
}

/* ============================================
   FOOTER ELEMENTS
   ============================================ */
p.powered {
  position: fixed;
  left: 20px;
  bottom: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

p.powered a {
  color: var(--primary-light);
  font-weight: 600;
}

p.powered a:hover {
  color: var(--primary-color);
}

p.float-r {
  position: fixed;
  right: 20px;
  bottom: 20px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 576px) {
  .wrap-login100 {
    padding: 36px 24px;
    border-radius: 20px;
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .login100-form-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
  }

  .input100 {
    height: 52px;
    font-size: 14px;
    padding-left: 48px;
  }

  .login100-form-btn {
    height: 52px;
    font-size: 15px;
  }

  .symbol-input100 {
    font-size: 16px;
    padding-left: 16px;
  }

  .txt1 {
    font-size: 13px;
  }

  p.powered, p.float-r {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    text-align: center;
    margin-top: 10px;
  }

  .container-login100 {
    padding: 15px;
    padding-bottom: 80px;
  }
}

@media (max-width: 400px) {
  .wrap-login100 {
    padding: 30px 20px;
  }

  .login100-form-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ============================================
   LOADING STATE
   ============================================ */
.login100-form-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.login100-form-btn.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

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

/* ============================================
   EXTRA UTILITIES
   ============================================ */
.p-t-10 { padding-top: 10px; }
.p-t-15 { padding-top: 15px; }
.p-t-20 { padding-top: 20px; }
.p-t-25 { padding-top: 25px; }
.p-t-30 { padding-top: 30px; }
.p-t-100 { padding-top: 100px; }

.p-b-0 { padding-bottom: 0; }
.p-b-10 { padding-bottom: 10px; }
.p-b-20 { padding-bottom: 20px; }
.p-b-30 { padding-bottom: 30px; }

.m-b-10 { margin-bottom: 10px; }
.m-b-20 { margin-bottom: 20px; }

.text-center { text-align: center; }
.w-full { width: 100%; }
