.app-form-card,
.reg-login-form,
.app-auth-card{
  background:#fff!important;
  border:1px solid #d9e5f2!important;
  border-radius:20px!important;
  box-shadow:0 10px 30px rgba(20,42,68,.08)!important;
  padding:18px!important;
}

.app-form-card h2,
.app-form-card h3,
.reg-login-form h2,
.reg-login-form h3,
.app-auth-card h2,
.app-auth-card h3{
  color:#17324d;
  font-weight:900;
  margin:0 0 8px;
  letter-spacing:-.02em;
}

.app-form-subtitle{
  color:#6f8093;
  font-size:14px;
  margin-bottom:16px;
}

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

.form-group label,
label.form-label{
  display:block;
  color:#28476b!important;
  font-size:14px;
  font-weight:800!important;
  margin-bottom:7px!important;
}

.form-control,
.form-select,
select,
textarea,
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=url],
input[type=date]{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border-radius:14px!important;
  border:1px solid #cfe0f5!important;
  background:#f8fbff!important;
  color:#17324d!important;
  box-shadow:none!important;
  transition:.18s ease;
}

textarea.form-control,
textarea{
  min-height:120px;
  resize:vertical;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus{
  background:#fff!important;
  border-color:#7aa7e0!important;
  box-shadow:0 0 0 4px rgba(74,144,226,.12)!important;
  outline:none!important;
}

.form-control::placeholder,
textarea::placeholder{
  color:#97a6b7!important;
}

.select2-container{
  width:100%!important;
}

.select2-container .select2-selection--single{
  min-height:50px!important;
  border-radius:14px!important;
  border:1px solid #cfe0f5!important;
  background:#f8fbff!important;
  display:flex!important;
  align-items:center!important;
  padding:0 12px!important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
  color:#17324d!important;
  line-height:48px!important;
  padding-left:0!important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
  height:48px!important;
  right:10px!important;
}

.select2-dropdown{
  border:1px solid #d9e5f2!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 12px 30px rgba(20,42,68,.12)!important;
}

.input-group-text{
  border:1px solid #cfe0f5!important;
  background:#eef5fd!important;
  color:#28476b!important;
  border-radius:14px!important;
  font-weight:700;
}

.form-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
  min-height:auto!important;
}

.form-check-input{
  width:20px!important;
  height:20px!important;
  min-height:auto!important;
  margin-top:2px!important;
  border-radius:7px!important;
  border:1px solid #b8cde4!important;
  background:#fff!important;
}

.form-check-input:checked{
  background-color:#ff3b3b!important;
  border-color:#ff3b3b!important;
}

.form-check-label{
  color:#28476b!important;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}

.app-submit-row{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}

.app-submit-row .btn,
.app-submit-row button,
.app-submit-row input[type=submit]{
  width:100%;
}

.text-danger,
.invalid-feedback{
  color:#d92d20!important;
  font-size:13px!important;
  font-weight:700;
  margin-top:6px;
}

.app-help,
small.form-text,
.form-text{
  color:#6f8093!important;
  font-size:12px!important;
  margin-top:6px;
}

.app-upload-box{
  border:1.5px dashed #c8d8ea;
  border-radius:18px;
  background:#f8fbff;
  padding:16px;
  text-align:center;
}

.app-upload-box p{
  margin:0;
  color:#6f8093;
  font-size:14px;
  font-weight:700;
}

.app-thumb-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.app-thumb{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #d9e5f2;
  background:#fff;
  aspect-ratio:1/1;
}

.app-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.app-thumb-remove{
  position:absolute;
  top:8px;
  right:8px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:none;
  background:rgba(217,45,32,.92);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.app-auth-wrap{
  max-width:540px;
  margin:0 auto;
}

.app-auth-links{
  margin-top:16px;
  text-align:center;
}

.app-auth-links a{
  color:#2d7ff9;
  font-weight:800;
  text-decoration:none;
}

.app-auth-links a:hover{
  text-decoration:underline;
}

@media (max-width: 575.98px){
  .app-form-card,
  .reg-login-form,
  .app-auth-card{
    padding:16px!important;
    border-radius:18px!important;
  }

  .form-control,
  .form-select,
  select,
  textarea,
  input[type=text],
  input[type=email],
  input[type=password],
  input[type=number],
  input[type=tel],
  input[type=url],
  input[type=date]{
    min-height:48px;
    padding:11px 13px;
    font-size:16px!important;
  }

  .app-thumb-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}