*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  font-family: 'Sora', sans-serif;
  background: radial-gradient(circle at 15% -10%, #ffffff 0%, #f2f8fe 28%, transparent 35%),
    linear-gradient(180deg, #dfeff8 0%, #d6e8f5 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.welcome-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.welcome-logo {
  width: 220px;
  height: auto;
  margin-bottom: 28px;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a2e52;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.welcome-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.welcome-btn {
  display: block;
  width: 100%;
  padding: 20px 24px;
  border: none;
  border-radius: 16px;
  background: rgba(110, 211, 240, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #0e2a4a;
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
  box-shadow: 0 4px 18px rgba(14, 42, 74, 0.10);
}

.welcome-btn:hover {
  background: rgba(80, 195, 230, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 42, 74, 0.16);
}

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

.welcome-footer {
  margin-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.welcome-version {
  font-size: 0.85rem;
  color: #2a4a6e;
}

.welcome-company {
  font-size: 0.82rem;
  color: #5a7a9a;
}

/* Modal Styles */
.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;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #f0f8fc;
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a2e52;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #5a7a9a;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #1a2e52;
}

/* Login Form Styles */
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Registration Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-full-width {
  grid-column: 1 / -1;
}

.form-section {
  margin-bottom: 0;
}

.section-title {
  font-size: 16px;
  color: #5a7f9f;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: #8a9fb5;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  
  color: #000;
  font-size: 14px;
  font-family: 'Sora', sans-serif;
  transition: background-color 0.3s ease;
}

.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #c0dce7;
  border-radius: 8px;
  background-color: #e8f4f9;
  color: #5a7f9f;
  font-size: 14px;
  font-family: 'Sora', sans-serif;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group select {
  color: #a8c5d9;
}

.form-group textarea::placeholder {
  color: #a8c5d9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background-color: #d9ecf5;
  border-color: #4eb8e8;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7f9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.button-container {
  margin-top: 40px;
  display: flex;
  gap: 12px;
}

.continue-btn,
.cancel-btn {
  flex: 1;
  padding: 16px;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Sora', sans-serif;
}

.continue-btn {
  background: linear-gradient(135deg, #4eb8e8 0%, #3fa0d8 100%);
  box-shadow: 0 4px 15px rgba(78, 184, 232, 0.3);
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 184, 232, 0.4);
}

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

.cancel-btn {
  background: #d0dde7;
  color: #5a7f9f;
}

.cancel-btn:hover {
  background: #c0cfd8;
}

@media (max-width: 768px) {
  .form-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .modal-content {
    padding: 25px;
    width: 95%;
  }

  .button-container {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
  }

  .section-title {
    font-size: 14px;
  }

  .modal-title {
    font-size: 20px;
  }
}

/* Authentication Modal Styles */
.auth-modal-content {
  max-width: 480px !important;
  padding: 50px 40px 40px !important;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f8fc 100%);
}

.back-btn-modal {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  font-size: 28px;
  color: #5a7f9f;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(78, 184, 232, 0.1);
}

.back-btn-modal:hover {
  color: #1a2e52;
  background: rgba(78, 184, 232, 0.2);
  transform: translateX(-3px);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 10px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a2e52;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: #7a92a8;
  line-height: 1.6;
  margin: 0;
}

#authForm {
  margin-bottom: 32px;
}

#verification_code {
  width: 100% !important;
  padding: 24px !important;
  font-size: 22px !important;
  letter-spacing: 8px !important;
  text-align: center !important;
  font-weight: 700 !important;
  border: 2px solid #d9ecf5 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: #1a2e52 !important;
  transition: all 0.3s ease !important;
  font-family: 'Courier New', monospace !important;
  margin-bottom: 32px !important;
}

#verification_code:focus {
  outline: none !important;
  border-color: #4eb8e8 !important;
  box-shadow: 0 0 0 3px rgba(78, 184, 232, 0.1) !important;
  background-color: #f8fbfd !important;
}

#verification_code::placeholder {
  color: #c0dce7 !important;
  letter-spacing: 8px !important;
}

.auth-btn {
  width: 100% !important;
  padding: 18px !important;
  margin-top: 0 !important;
}

.auth-footer-actions {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(78, 184, 232, 0.08);
  border-radius: 12px;
}

.auth-resend {
  font-size: 14px;
  color: #5a7f9f;
  margin: 0;
  line-height: 1.6;
}

.resend-link {
  color: #4eb8e8;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1.5px solid #4eb8e8;
  padding-bottom: 2px;
}

.resend-link:hover {
  color: #3fa0d8;
  border-bottom-color: #3fa0d8;
  text-decoration: none;
}

.auth-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0ecf3;
}

.auth-footer p {
  font-size: 12px;
  color: #8a9fb5;
  margin: 0;
}

/* Animation for code input */
@keyframes codeInputPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(78, 184, 232, 0.1);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(78, 184, 232, 0);
  }
}

#verification_code:focus {
  animation: codeInputPulse 1.5s infinite;
}

@media (max-width: 600px) {
  .auth-modal-content {
    max-width: 100% !important;
    padding: 45px 24px 32px !important;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  #verification_code {
    padding: 18px !important;
    font-size: 20px !important;
    letter-spacing: 6px !important;
    margin-bottom: 24px !important;
  }

  .auth-footer-actions {
    padding: 18px;
    margin-bottom: 24px;
  }

  .auth-resend {
    font-size: 13px;
  }
}

.form-group input:disabled,
.form-group select:disabled {
  background-color: #ebebeb;
  color: #999999;
  border-color: #dddddd;
  cursor: not-allowed;
  opacity: 0.7;
}