.auth-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9fd 100%);
  padding: 20px;
  font-family: -apple-system, BlinkMacOSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 32px;
  text-align: center;
}

.phone-login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
    text-align: left;
    margin: 0 20px 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    /* margin: 0 20px; */
    background: #ECF3F9;
}

.phone-group {
    position: relative;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-flag {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.phone-input {
    padding-left: 48px !important; /* место под флаг */
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Маска ввода (визуальная) — опционально, если хочешь показать подчёркивания */
.phone-input::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Чтобы при фокусе было красиво */
.phone-input:focus {
    outline: none;
}

.hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.btn-submit {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.btn-submit:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.form-footer {
  text-align: center;
  font-size: 14px;
  color: #4b5563;
}

.error-message {
  color: #dc2626;
  margin: 12px 0;
}

.success-message {
  color: #059669;
  margin: 12px 0;
}

/* Модалка подтверждения номера */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    /* width: 100%; */
    max-width: 500px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.modal-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-text {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
}

.modal-note {
    margin-top: 0;
}

.modal-phone-box {
    font-size: 28px;
    font-weight: 700;
    background: #f0f8ff;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.modal-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    margin: 16px 0;
    letter-spacing: 4px;
    box-sizing: border-box;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FDA72E, #FF9800);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.modal-close {
    background: #f0f0f0;
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
  .auth-container {
    padding: 32px 20px;
  }
  h1 {
    font-size: 24px;
  }
  .auth-section{
    min-height: 80vh;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-content {
    width: 92%;
    padding: 20px 16px;
  }
  .modal-btn {
    font-size: 15px;
    padding: 12px;
  }
}
