/* ===== LOGIN PAGE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #FFF5E1 0%, #FFE4B5 100%);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(220, 20, 60, 0.15);
  overflow: hidden;
  border: 1px solid #FFD4B4;
}

.login-header {
  background: linear-gradient(135deg, #DC143C, #FF6B35);
  padding: 40px 30px;
  text-align: center;
  color: #fff;
}

.login-logo {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin: 0 auto 16px;
  letter-spacing: 2px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}

.login-form {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-input {
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #f5f5f5;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  background: #ffffff;
  border-color: #DC143C;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-input::placeholder {
  color: #a0a0a0;
}

.btn-login {
  padding: 12px 16px;
  background: linear-gradient(135deg, #DC143C, #FF6B35);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  padding: 16px 30px 24px;
  text-align: center;
  border-top: 1px solid #FFD4B4;
}

.forgot-password-link {
  font-size: 13px;
  color: #DC143C;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  color: #FF6B35;
  text-decoration: underline;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  padding: 12px 14px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 8px;
  color: #f43f5e;
  font-size: 13px;
  margin-bottom: 8px;
  display: none;
}

.error-message.show {
  display: block;
}

/* ===== MODAL POPUP ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.modal-result-container {
  display: flex;
  justify-content: center;
  padding: 30px 20px 0;
  min-height: 120px;
  align-items: center;
}

.result-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg circle {
  animation: drawCircle 0.6s ease-out forwards;
}

.success-icon .checkmark {
  animation: drawCheckmark 0.6s ease-out 0.4s forwards;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.failure-icon svg circle {
  animation: drawCircleRed 0.6s ease-out forwards;
}

.failure-icon svg line:first-of-type {
  animation: drawLine1 0.6s ease-out 0.4s forwards;
  stroke-dasharray: 28.28;
  stroke-dashoffset: 28.28;
}

.failure-icon svg line:last-of-type {
  animation: drawLine2 0.6s ease-out 0.5s forwards;
  stroke-dasharray: 28.28;
  stroke-dashoffset: 28.28;
}

@keyframes drawCircle {
  to {
    stroke-dasharray: 157;
    stroke-dashoffset: 0;
  }
}

@keyframes drawCircleRed {
  to {
    stroke-dasharray: 157;
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheckmark {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawLine1 {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawLine2 {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #ffffff;
  padding: 20px;
  text-align: center;
  display: none;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-body {
  padding: 24px 20px;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.modal-body p {
  margin: 0;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.modal-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-btn:active {
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .login-card {
    border-radius: 8px;
  }

  .login-header {
    padding: 32px 24px;
  }

  .login-form {
    padding: 24px;
  }

  .login-title {
    font-size: 20px;
  }

  .login-subtitle {
    font-size: 12px;
  }
}
