/* style.css */
:root {
  --primary-color: #3c67dd;
  --primary-hover: #2a56c7;
  --error-color: #d3c9c9;
  --success-color: #4caf50;
  --warning-color: #ffa726;
  --text-color: #333;
  --light-text: #666;
  --border-color: #ddd;
  --input-bg: #f8f9fa;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7fa;
  color: var(--text-color);
  line-height: 1.6;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.9;
}

.login-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease-out;
}
.password-wrapper{
    display: flex;
    align-items: center;
}
.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -30px;
}

.toggle-password svg {
    color: #666;
}

.toggle-password svg.feather-eye-off {
    color: #333;
}

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

.login-logo {
  width: 220px;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(60, 103, 221, 0.2);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--light-text);
  margin-top: 0.25rem;
  opacity: 0;
  height: 0;
  transition: all 0.3s ease;
}

.form-input:placeholder-shown + .input-hint {
  opacity: 1;
  height: auto;
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(60, 103, 221, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.button-loader,
.button-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button-loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.button-success {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.submit-button.loading .button-text {
  opacity: 0;
}

.submit-button.loading .button-loader {
  opacity: 1;
}

.submit-button.success .button-text {
  opacity: 0;
}

.submit-button.success .button-success {
  opacity: 1;
  animation: checkmark 0.5s ease;
}

@keyframes checkmark {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.support-link svg {
  width: 16px;
  height: 16px;
  fill: var(--light-text);
}

.support-link:hover {
  color: var(--primary-color);
}

.support-link:hover svg {
  fill: var(--primary-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--input-bg);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: var(--light-text);
}

.social-links a:hover svg {
  fill: var(--white);
}

/* Notification System */
.notification {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  color: var(--text-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  max-width: 90%;
  animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.warning {
  border-left: 4px solid var(--warning-color);
}

.notification-icon {
  flex-shrink: 0;
}

.notification-message {
  flex-grow: 1;
  font-size: 0.875rem;
}

.notification-close {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.notification-close:hover {
  opacity: 1;
}
.phone-denyed {
  text-align: center;
}

.forgot-password {
  width: 9em;
  font-size: smaller;
}
.forgot-password a {
  text-decoration: none;
  color: var(--light-text);
}
.forgot-password a:hover {
  color: var(--primary-color);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.notification.fade-out {
  animation: fadeOutUp 0.4s ease forwards;
}

@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 1rem;
  }

  .login-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .login-logo {
    width: 180px;
  }

  .form-input {
    padding: 0.625rem 0.875rem;
  }

  .submit-button {
    padding: 0.75rem;
  }
}
