/* ======================================================
   ROOT
====================================================== */

:root {
  --primary-green: #00a651;
  --primary-blue: #0b4ea2;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e5e7eb;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  --radius: 18px;
}

/* ======================================================
   RESET
====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  position: relative;
}

/* ======================================================
   BACKGROUND
====================================================== */

.background {
  position: fixed;
  inset: 0;
  background: url("assets/background.png") center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

/* ======================================================
   OVERLAY
====================================================== */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
}

/* ======================================================
   LOGIN WRAPPER
====================================================== */

.login-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  position: relative;
}

/* ======================================================
   LOGIN CARD
====================================================== */

.login-card {
  width: 420px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 42px;
}

/* ======================================================
   LOGO
====================================================== */

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -40px;
  margin-top: -65px;
}

.logo img {
  width: 280px;
  display: block;
}

/* ======================================================
   TITLE
====================================================== */

.login-title {
  text-align: center;
  margin-bottom: 35px;
}

.login-title h1 {
  color: var(--primary-green);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-title p {
  color: var(--text-light);
  margin-top: 6px;
  font-size: 14px;
}

.login-title h2 {
  color: var(--text-light);
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ======================================================
   FORM
====================================================== */

form {
  width: 100%;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ======================================================
   INPUT
====================================================== */

.input-box {
  position: relative;
}

.input-box input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}

.input-box input::placeholder {
  color: #94a3b8;
}

.input-box input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.12);
}

/* ======================================================
   PASSWORD BUTTON
====================================================== */

.toggle-password {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  transition: 0.25s;
}

.toggle-password:hover {
  color: var(--primary-green);
}

/* ======================================================
   FORGOT PASSWORD
====================================================== */

.form-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -5px;
  margin-bottom: 18px;
}

.forgot-password {
  border: none;
  background: none;
  color: var(--primary-blue);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: 0.25s;
}

.forgot-password:hover {
  color: var(--primary-green);
}

.forgot-password i {
  font-size: 14px;
}

/* ======================================================
   FORGOT PASSWORD SIDE PANEL
====================================================== */

.forgot-info {
  position: absolute;
  top: 50%;
  left: calc(50% + 245px);
  width: 360px;
  transform: translateY(-50%) translateX(-20px);
  opacity: 0;
  visibility: hidden;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;

  z-index: 20;
}

/* PANEL ACTIVE */

.forgot-info.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ======================================================
   PANEL ARROW
====================================================== */

.forgot-info::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(0, 166, 81, 0.18);
  border-bottom: 1px solid rgba(0, 166, 81, 0.18);
  transform: translateY(-50%) rotate(45deg);
}

/* ======================================================
   INFO ICON
====================================================== */

.forgot-info-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

.forgot-info-header strong {
  margin-top: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.forgot-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #00a651;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(0, 166, 81, 0.22);
}

/* ======================================================
   INFO CONTENT
====================================================== */

.forgot-info-content {
  flex: 1;
}

.forgot-info-content > p {
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ======================================================
   ADMIN CONTACT
====================================================== */

.admin-contact {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 12px;
}

.admin-contact small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-bottom: 3px;
}

.admin-contact strong {
  display: block;
  color: var(--primary-green);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ======================================================
   NOTE
====================================================== */

.forgot-info-content .forgot-note {
  margin: 0;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.6;
}

/* ======================================================
   LOGIN BUTTON
====================================================== */

.login-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00a651, #009246);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 10px 20px rgba(0, 166, 81, 0.25);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 166, 81, 0.3);
}

.login-btn:active {
  transform: scale(0.98);
}

/* ======================================================
   FOOTER
====================================================== */

.login-footer {
  margin-top: 28px;
  text-align: center;
}

.login-footer span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.login-footer small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.login-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  font-size: 14px;
  text-align: center;
}

/* ==========================================================
   SRA OPS - PREMIUM ENTRANCE
   LOGIN V0.1.0
========================================================== */

@keyframes sraLoginBackground {
  from {
    opacity: 0;
    scale: 1.035;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes sraLoginCard {
  from {
    opacity: 0;
    translate: 0 24px;
    scale: 0.985;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes sraLoginFadeUp {
  from {
    opacity: 0;
    translate: 0 12px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.background {
  animation: sraLoginBackground 0.9s ease-out both;
}

.overlay {
  animation: sraLoginBackground 0.65s ease-out both;
}

.login-card {
  animation: sraLoginCard 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.logo {
  animation: sraLoginFadeUp 0.45s ease-out 0.2s both;
}

.login-title {
  animation: sraLoginFadeUp 0.45s ease-out 0.27s both;
}

.login-card .form-group:nth-of-type(1) {
  animation: sraLoginFadeUp 0.45s ease-out 0.34s both;
}

.login-card .form-group:nth-of-type(2) {
  animation: sraLoginFadeUp 0.45s ease-out 0.4s both;
}

.form-options {
  animation: sraLoginFadeUp 0.45s ease-out 0.46s both;
}

.login-btn {
  animation: sraLoginFadeUp 0.45s ease-out 0.52s both;
}

.login-footer {
  animation: sraLoginFadeUp 0.45s ease-out 0.58s both;
}

@media (prefers-reduced-motion: reduce) {
  .background,
  .overlay,
  .login-card,
  .logo,
  .login-title,
  .login-card .form-group,
  .form-options,
  .login-btn,
  .login-footer {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
  }
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
  .login-card {
    width: 100%;
    padding: 30px;
  }

  .logo img {
    width: 110px;
  }

  .login-title h1 {
    font-size: 25px;
  }
}
