:root {
  --bg-main: #0d1117;
  --bg-primary: #0d1117;
  --bg-sidebar: #111827;
  --bg-card: #1c2333;
  --accent: #00bcd4;
  --text: #f1f1f1;
  --muted: #9ca3af;
  --border: #2a2f3a;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 8px;
  --transition: all 0.3s ease;
  --font-main: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ALERTS */

/* ALERT POP UPS */


.success-alert {
  background-color: #4CAF50;
  color: white;
}

.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000009b;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.alert-content {
  width: 350px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.alert-icon {
  margin-bottom: 15px;
}

.alert-icon i {
  font-size: 50px;

}

.alert-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.alert-message p {
  margin: 0;
  font-size: 1rem;
}

.alert-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: white;
  color: #4CAF50;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.alert-button:hover {
  opacity: 0.9;
}


.error-alert {
  background-color: #F44336;
  color: white;
}

.error-alert .alert-button {
  color: #F44336;
}



.confirm-modal {
  background-color: white;
  color: #333;
}

.confirm-modal .alert-icon svg {
  stroke: #4CAF50;
}

.pinpassword-input {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.confirm-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.pincancel-button {
  background-color: #f1f1f1;
  color: #333;
  flex: 1;
}

.pinconfirm-button {
  background-color: #4CAF50;
  color: white;
  flex: 1;
}


/* PASSWOR MODAL */


/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
}


/* Password Modal */
.password-modal {
  background: #f0f0f0;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  display: block;
}



.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #C9302C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #404040;
  color: #f0f0f0;
  transform: rotate(90deg);
}

.modal-header {
  background: #2A4D7A;
  padding: 25px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #E0E0E0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #f0f0f0;
}

.modal-subtitle {
  color: #f0f0f0;
  font-size: 0.95rem;
}

.modal-content {
  padding: 25px;
}

.pin-form-group {
  margin-bottom: 20px;
}

.pin-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #121212;
}

.password-input-group {
  position: relative;
}

.password-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #404040;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;

}

.password-input:focus {
  outline: none;
  border-color: #0088cc;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  font-size: 1rem;
}

.password-toggle:hover {
  color: var(--primary-blue);
}

.form-text {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #121212;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.confirm-button {
  flex: 1;
  padding: 15px;
  background: #3A6BB0;
  color: #f0f0f0;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.confirm-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.confirm-button:disabled {
  background: var(--text-light);
  border: #333 1px solid;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cancel-button {
  flex: 1;
  padding: 15px;
  background: var(--red-dark);
  color: var(--text-light);
  border: 2px solid var(--white);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-button:hover {
  background: var(--light-blue);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.error-messagepassword {
  color: var(--error-red);
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 600;
  display: none;
}

/* Responsive Design */
@media (max-width: 576px) {
  .password-modal {
    width: 95%;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-title {
    font-size: 1.3rem;
  }
}



.container {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.back-btn {
  position: absolute;
  top: -60px;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.back-btn:hover {
  background: var(--accent);
  color: var(--bg-main);
  transform: translateX(-3px);
}

.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), #0891b2);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-icon i {
  font-size: 28px;
  color: white;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.logo p {
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-main);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-group select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group input::placeholder {
  color: var(--muted);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.password-toggle:hover {
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  transition: var(--transition);
}

.radio-option input[type="radio"]:checked+.radio-custom {
  border-color: var(--accent);
}

.radio-option input[type="radio"]:checked+.radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-option span {
  color: var(--text);
  font-size: 14px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background: #00a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  padding: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  background: var(--bg-sidebar);
  border-color: var(--accent);
}

.social-btn i {
  font-size: 18px;
}

.footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-text a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .card {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-buttons {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}