/* Boxicons CDN */
@import url("https://cdn.jsdelivr.net/gh/atisawd/boxicons/css/boxicons.min.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body,
html {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0f2f5;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 1;
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 24px;
  text-align: center;
}

.login-content {
  display: flex;
  width: 90%;
  max-width: 1100px;
  height: 600px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.animation {
  width: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
}

.form-section {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.app-icon {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.app-icon .icon {
  width: 250px;
  height: 250px;
}

.login-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 220px;
}

.login-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.login-form input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Improved password field styling */
.password-field {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #777;
  transition: color 0.2s ease;
  z-index: 2;
}

.toggle-password:hover {
  color: #154c79;
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.95);
}

.toggle-password i {
  font-size: 18px;
  color: #777;
  transition: color 0.2s ease;
}

.toggle-password:hover i {
  color: #154c79;
}

/* Add focus effect to the whole password field when focused */
.password-field:focus-within {
  border-color: #154c79;
}

/* Ensure the field doesn't have any existing right padding that might cause issues */
.password-input {
  padding-right: 40px !important;
  border-radius: 4px;
  -webkit-border-radius: 4px;
}

/* Webkit specific input styles */
.password-input::-webkit-input-placeholder {
  color: #999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.password-input:focus::-webkit-input-placeholder {
  opacity: 0.7;
}

/* Add a subtle animation for the toggle */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.toggle-password i {
  animation: fadeIn 0.2s ease;
}

.login-form button {
  padding: 14px;
  background-color: #154c79;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.login-form button:hover {
  background-color: #0056b3;
}

.options {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.options a {
  text-decoration: none;
  color: #007bff;
}

.options a:hover {
  text-decoration: underline;
}

.register-link {
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

footer {
  width: 100%;
  background-color: #154c79;
  color: #fff;
  text-align: center;
  height: 50px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

footer p {
  margin: 0;
  line-height: 1.2;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.social-icons a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s;
}

social-icons a:hover {
  color: #d4d4d4;
}

@media (max-width: 768px) {
  .login-content {
    flex-direction: column;
  }

  .image-section {
    display: none;
  }

  .form-section {
    padding: 20px;
  }

  footer {
    font-size: 12px;
    padding: 15px 10px;
  }
  .social-icons {
    gap: 10px;
  }
}

.verify-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  margin-top: 10px;
}

.verify-form h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.verify-form p {
  font-size: 16px;
  color: #888;
  margin-bottom: 20px;
}

.code-input {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.code-field {
  width: 50px !important;
  height: 50px !important;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #154c79;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-field:focus {
  border-color: #154c79;
  box-shadow: 0 0 0 2px rgba(21, 76, 121, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.code-field.error {
  border-color: #dc3545;
}

.verify-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 10px;
  border-radius: 5px;
  margin: 15px 0;
  font-size: 14px;
  text-align: center;
}

.resend {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #888;
}

.resend-link {
  color: #154c79;
  text-decoration: none;
}

.resend-link:hover {
  text-decoration: underline;
}

/* Remove number spinners */
.code-field::-webkit-inner-spin-button,
.code-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.code-field:-moz-placeholder {
  color: #999;
}

.code-field::-webkit-input-placeholder {
  color: #999;
}

/* Style for filled inputs */
.code-field:not(:placeholder-shown) {
  background-color: #f8f9fa;
  border-color: #154c79;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .code-field {
    width: 45px !important;
    height: 45px !important;
    font-size: 20px;
  }

  .code-input {
    gap: 8px;
  }
}

.verify-btn {
  padding: 14px;
  background-color: #154c79;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.verify-btn:hover {
  background-color: #0056b3;
}

.resend {
  margin-top: 10px;
  font-size: 14px;
}

.resend a {
  text-decoration: none;
  color: #007bff;
}

.resend a:hover {
  text-decoration: underline;
}
