@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");
:root {
  --pfi-blue: #003366;
  --pfi-blue-dark: #001f3f;
  --pfi-gold: #d4a017;
  --pfi-gold-light: #fcd34d;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif !important;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(0, 31, 63, 0.65), rgba(0, 31, 63, 0.85)),
    url("../images/bg-auth.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.8s ease-out;
}

.pfi-logo {
  width: 120px;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-area {
  text-align: center;
  margin-bottom: 35px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  direction: ltr;
}

.logo-box a {
  width: auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.title-h1 {
  color: white;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(212, 160, 23, 0.4);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.subtitle {
  color: var(--pfi-gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.9;
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.icon-square {
  width: 42px;
  height: 42px;
  background: var(--pfi-blue);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 51, 102, 0.3);
}

.card-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--pfi-blue);
}

.card-title p {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.error-alert {
  background: #fef2f2;
  border-right: 4px solid #ef4444;
  padding: 12px 16px;
  border-radius: 12px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--pfi-blue);
  margin-bottom: 8px;
}

.input-control:focus {
  border-color: var(--pfi-gold);
  background: white;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
}
.input-control-login {
  width: 100%;
  padding: 14px 20px;
  padding-inline-end: 45px;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.6);
  outline: none;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 700;
}

.input-control-owner {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.6);
  outline: none;
  transition: all 0.3s;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2em;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 15px;
  transform: translateY(-50%);
  color: #cbd5e1;
  transition: color 0.3s;
  pointer-events: none;
}

.input-control:focus + .input-icon {
  color: var(--pfi-gold);
}

.password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 15px;
  transform: translateY(-50%);
  color: #cbd5e1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
}

.password-toggle:hover {
  color: var(--pfi-blue);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--pfi-blue);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(42, 65, 88, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  margin-top: 10px; /* */
}

.btn-submit:hover {
  background: var(--pfi-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 51, 102, 0.5);
}

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

.card-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.or-divider {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-control.otp-mode {
  letter-spacing: 0.8em;
  font-size: 24px;
}

.btn-text {
  color: var(--pfi-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-text:hover {
  color: var(--pfi-gold);
  text-decoration: underline;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: white;
  border: 2px solid var(--pfi-blue);
  color: var(--pfi-blue);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: 15px; /* */
}

.btn-secondary:hover {
  background: var(--pfi-blue);
  color: white;
}

.copyright-txt {
  text-align: center;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 480px) {
  .glass-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .logo-box a {
    width: 70px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .title-h1 {
    font-size: 20px;
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 31, 63, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--pfi-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

.hidden {
  display: none !important;
}

.back-btn {
  position: absolute;
  top: 40px;
  inset-inline-end: 40px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.3s;
}
.back-btn:hover {
  background: var(--pfi-blue);
  color: white;
}
