/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.03), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(70, 163, 255, 0.03), transparent 40%),
    #0a0e14;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== LAYOUT ===== */
.wrap {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.card {
  background: linear-gradient(145deg, #1a2332 0%, #0f1621 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 215, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* ===== LOGO ===== */
.logo {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.25));
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.25));
  }
  50% {
    filter: drop-shadow(0 8px 32px rgba(255, 215, 0, 0.4));
  }
}

/* ===== TEXT ===== */
.sub {
  margin: 0 0 32px;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

/* ===== FORM FIELDS ===== */
.field {
  margin-bottom: 16px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

input[type="text"]:hover,
input[type="password"]:hover {
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

input[type="text"]:focus,
input[type="password"]:focus {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 
    0 0 0 4px rgba(255, 215, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #6b7280;
  font-weight: 400;
}

/* ===== PASSWORD FIELD WITH TOGGLE ===== */
.passwordField {
  position: relative;
  display: flex;
  align-items: center;
}

.passwordField input {
  padding-right: 50px;
}

.togglePassword {
  position: absolute;
  right: 12px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  padding: 7px;
  cursor: pointer;
  color: #ffd700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  width: 34px;
  height: 34px;
}

.togglePassword:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}

.togglePassword:active {
  transform: scale(0.95);
}

.eyeIcon {
  transition: opacity 0.2s;
}

.eyeIcon.hidden {
  display: none;
}

/* ===== FIELD OPTIONS ===== */
.fieldOptions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 26px;
  font-size: 14px;
}

.rememberMe {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #d1d5db;
  user-select: none;
  transition: color 0.2s;
  font-weight: 500;
}

.rememberMe:hover {
  color: #ffd700;
}

.rememberMe input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ffd700;
  border-radius: 4px;
}

.forgotPassword {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.forgotPassword:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
}

/* ===== BUTTONS ===== */
.btnLogin {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #0a0e14;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btnLogin::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btnLogin:hover::before {
  left: 100%;
}

.btnLogin:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(255, 215, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btnLogin:active:not(:disabled) {
  transform: translateY(0);
}

.btnLogin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btnLoader {
  display: inline-flex;
}

.spinner {
  animation: spin 1s linear infinite;
}

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

/* ===== INFO MESSAGE ===== */
.info {
  margin-top: 18px;
  padding: 13px 16px;
  font-size: 13px;
  text-align: center;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  display: none;
  font-weight: 500;
}

.info:not(:empty) {
  display: block;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s;
}

.modalContent {
  position: relative;
  background: linear-gradient(145deg, #1a2332 0%, #0f1621 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  max-width: 500px;
  width: 100%;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(255, 215, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modalHeader {
  padding: 26px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalHeader h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: -0.5px;
}

.modalClose {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: all 0.2s;
  line-height: 1;
  font-weight: 300;
}

.modalClose:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  transform: rotate(90deg);
}

.modalBody {
  padding: 26px;
}

.modalDesc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
  font-weight: 400;
}

.alertInfo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 10px;
  color: #fbbf24;
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.alertInfo svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.modalFooter {
  padding: 18px 26px 26px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btnCancel {
  padding: 12px 26px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d1d5db;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btnCancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3f4f6;
  transform: translateY(-1px);
}

.btnSendReset {
  padding: 12px 26px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #0a0e14;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btnSendReset:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(255, 215, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btnSendReset:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .card {
    padding: 36px 28px;
    border-radius: 24px;
  }
  
  .logo {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
  }
  
  .sub {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  input[type="text"],
  input[type="password"] {
    padding: 11px 13px;
    font-size: 14px;
  }
  
  .btnLogin {
    padding: 13px 20px;
    font-size: 14px;
  }
  
  .modalContent {
    margin: 0 16px;
  }
  
  .modalHeader,
  .modalBody,
  .modalFooter {
    padding-left: 22px;
    padding-right: 22px;
  }
  
  .fieldOptions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding: 16px;
  }
  
  .card {
    padding: 28px 20px;
  }
  
  .logo {
    width: 120px;
    height: 120px;
  }
}

/* Made with Bob */
