/* Import Google font - Poppins & Noto */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital@1&family=Poppins:wght@300;400;500;600;700&display=swap");

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: "Poppins", sans-serif;
}

::selection {
   color: #fff;
   background: #667eea;
}

body {
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
   padding: 20px;
}

.wrapper2 {
   max-width: 480px;
   width: 100%;
   background: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(10px);
   margin: 20px;
   padding: 40px 35px;
   border-radius: 20px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
   animation: slideUp 0.5s ease-out;
   transition: all 0.3s ease;
}

@keyframes slideUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.modern-header {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   color: #667eea;
   font-size: 28px;
   font-weight: 600;
   text-align: center;
   margin-bottom: 30px;
   padding: 15px 0;
}

.modern-header i {
   font-size: 32px;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
   0%, 100% {
      transform: scale(1);
   }
   50% {
      transform: scale(1.1);
   }
}

.login-header {
   margin-top: 20px;
   margin-bottom: 25px;
}
.wrapper2 .captcha-area {
   display: flex;
   height: 70px;
   margin: 25px 0 25px;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
}

.captcha-area .captcha-img {
   height: 100%;
   flex: 1;
   user-select: none;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   border-radius: 12px;
   position: relative;
   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
   overflow: hidden;
}
.captcha-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 5px;
   opacity: 0.95;
}
.captcha-img .captcha {
   position: absolute;
   left: 50%;
   top: 50%;
   width: 100%;
   color: #fff;
   font-size: 32px;
   font-weight: 700;
   text-align: center;
   letter-spacing: 8px;
   transform: translate(-50%, -50%);
   text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
   font-family: "Noto Serif", serif;
}
.wrapper2 button {
   outline: none;
   border: none;
   color: #fff;
   cursor: pointer;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   border-radius: 12px;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wrapper2 button:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.wrapper2 button:active {
   transform: translateY(0);
}

.captcha-area .reload-btn {
   width: 70px;
   height: 100%;
   font-size: 22px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.captcha-area .reload-btn i {
   transition: transform 0.3s ease;
}

.captcha-area .reload-btn:hover i {
   transform: rotate(180deg);
}
.wrapper2 .input-area {
   width: 100%;
   position: relative;
   margin-bottom: 20px;
}

.input-wrapper {
   position: relative;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
}

.input-wrapper .input-icon {
   position: absolute;
   left: 18px;
   color: #667eea;
   font-size: 18px;
   z-index: 1;
   pointer-events: none;
   transition: color 0.3s ease;
}

.input-wrapper input {
   width: 100%;
   height: 55px;
   outline: none;
   padding-left: 50px;
   padding-right: 18px;
   font-size: 16px;
   border-radius: 12px;
   border: 2px solid #e0e0e0;
   background: #fff;
   transition: all 0.3s ease;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-wrapper input:focus {
   border-color: #667eea;
   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
   transform: translateY(-2px);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:valid ~ .input-icon {
   color: #764ba2;
}

.input-wrapper input::placeholder {
   color: #999;
   font-weight: 400;
}

.modern-btn {
   width: 100%;
   height: 55px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   font-size: 16px;
   font-weight: 600;
   margin-top: 10px;
   padding: 0 30px;
   opacity: 0;
   pointer-events: none;
   transition: all 0.3s ease;
}

.modern-btn.ativo {
   opacity: 1;
   pointer-events: auto;
}

.modern-btn i {
   font-size: 18px;
}

.modern-btn-submit {
   width: 100%;
   height: 55px;
   font-size: 18px;
   font-weight: 600;
   margin-top: 10px;
   border-radius: 12px;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   color: #fff;
   border: none;
   cursor: pointer;
   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
   transition: all 0.3s ease;
}

.modern-btn-submit:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modern-btn-submit:active {
   transform: translateY(0);
}

.login-field {
   animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}
.wrapper2 .status-text {
   display: none;
   font-size: 16px;
   font-weight: 500;
   text-align: center;
   margin: 20px 0 10px;
   padding: 12px;
   border-radius: 12px;
   border: 1px solid transparent;
   animation: fadeIn 0.3s ease-out;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.status-text.status-success {
   background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
   color: #fff;
   border-color: rgba(255, 255, 255, 0.2);
}

.status-text.status-error {
   background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
   color: #fff;
   border-color: rgba(255, 255, 255, 0.2);
}

.modern-footer {
   margin-top: 30px;
   padding-top: 25px;
   text-align: center;
   border-top: 1px solid #e0e0e0;
}

.login-error-container {
   margin-bottom: 20px;
   animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-10px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.login-error-message {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 15px 20px;
   background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
   color: #fff;
   border-radius: 12px;
   box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
   font-size: 14px;
   font-weight: 500;
   animation: shake 0.5s ease-out;
}

@keyframes shake {
   0%, 100% {
      transform: translateX(0);
   }
   25% {
      transform: translateX(-5px);
   }
   75% {
      transform: translateX(5px);
   }
}

.login-error-message i {
   font-size: 18px;
   flex-shrink: 0;
}

.login-error-message span {
   flex: 1;
   line-height: 1.5;
}

.forgot-password-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   color: #667eea;
   text-decoration: none;
   font-size: 14px;
   font-weight: 500;
   transition: all 0.3s ease;
   padding: 8px 16px;
   border-radius: 8px;
}

.forgot-password-link:hover {
   color: #764ba2;
   background: rgba(102, 126, 234, 0.1);
   transform: translateY(-2px);
}

.forgot-password-link i {
   font-size: 16px;
}

@media (max-width: 506px) {
   body {
      padding: 10px;
   }

   .wrapper2 {
      padding: 30px 25px;
      margin: 10px;
      border-radius: 15px;
   }

   .modern-header {
      font-size: 24px;
      margin-bottom: 25px;
   }

   .modern-header i {
      font-size: 28px;
   }

   .wrapper2 .captcha-area {
      height: 60px;
      margin: 20px 0;
   }

   .captcha-area .captcha {
      font-size: 26px;
      letter-spacing: 5px;
   }

   .captcha-area .reload-btn {
      width: 60px;
      font-size: 20px;
   }

   .input-wrapper input {
      height: 50px;
      font-size: 15px;
      padding-left: 45px;
   }

   .input-wrapper .input-icon {
      left: 15px;
      font-size: 16px;
   }

   .modern-btn,
   .modern-btn-submit {
      height: 50px;
      font-size: 16px;
   }

   .wrapper2 .status-text {
      font-size: 14px;
      padding: 10px;
   }

   .forgot-password-link {
      font-size: 13px;
   }

   .login-error-message {
      padding: 12px 16px;
      font-size: 13px;
   }

   .login-error-message i {
      font-size: 16px;
   }
}
