@import '@/styles/common';

body {
  position: relative;
  background: #833AE033;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

#region {
  padding-right: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#settlement {
  padding-right: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#school {
  padding-right: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.background-left{
  position: absolute;
  width: 170px;
  height: 502px;
  left: 0;
  top: 187px;
  background: url('/img/register-cgto/background-left.png') no-repeat;
}

.background-right{
  position: absolute;
  width: 230px;
  height: 502px;
  right: 0;
  top: 187px;
  background: url('/img/register-cgto/background-right.png') no-repeat;
}

.logo{
  position: absolute;
  left: 56px;
  top: 56px;
}

.square{
  width: 32px;
  height: 32px;
  background: #602B7A;
  position: absolute;
  top: 56px;
  right: 56px;
}
.square.bottom{
  top: 712px;
}

.cgto-region {
  width: 524px;
  border-radius: 12px;
  background: white;
  position: relative;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cgto-region-back {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: url('/img/register-cgto/close.png') no-repeat;
}

.title {
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  width: 327px;
  margin: 0;
  margin-bottom: 24px;
}

.form-group{
  width: 100%;
  column-gap: 16px;
  row-gap: 0;
  margin-bottom: 3px;
  display: grid;
  grid-template-columns: 1fr 270px;
  grid-template-rows: auto auto;
}

.form-group label{
  width: 100%;
  text-align: right;
  color: #0F1C2C !important;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: 7px;
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.form-group input, .form-group select{
  min-width: 270px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #0F1C2C20 !important;
  color: #0F1C2C;
  font-size: 16px;
  font-weight: 400;
  font-family: Montserrat, sans-serif;
  outline: none !important;
  box-shadow: none !important;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.form-group .select2-container--krajee .select2-selection{
  min-width: 270px;
  height: 36px;
  border-radius: 10px !important;
  border: 1px solid #0F1C2C20 !important;
  color: #0F1C2C;
  font-size: 16px;
  font-weight: 400;
  font-family: Montserrat, sans-serif;
  outline: none !important;
  box-shadow: none !important;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.form-group.has-error .select2-container--krajee .select2-selection{
  border-color: #E52F2E !important;
}

.form-group.has-success .select2-container--krajee .select2-selection{
  border: 1px solid #0F1C2C20 !important;
}

.form-group .select2-container--krajee .select2-selection__arrow{
  border: none !important;
  background: url('/img/register-cgto/arrow-down.png') no-repeat;
  background-position-y: 8px;
}

.form-group .select2-container--krajee .select2-selection__arrow b{
  display: none;
}

.select2-dropdown.select2-dropdown--below{
  width: 415px !important;
  border-radius: 10px !important;
  border: none;
  box-shadow: 0px 4px 24px -8px #00000070 !important;
  padding: 8px;
}

.select2-results__option{
  color: #0F1C2C !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-family: Montserrat, sans-serif !important;
  background: none !important;
}

.select2-results__option:hover{
  color: #833AE0 !important;
}

.form-group.has-error input, .form-group.has-error select{
  border-color: #E52F2E !important;
}

.form-group .help-block{
  visibility: hidden;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin: 0;
  margin-top: 2px;
  height: 18px;
  color: #E52F2E;
  font-size: 14px;
  font-weight: 400;
  font-family: Montserrat, sans-serif;
}

.form-group .help-block:before{
  content: '';
  background: url('/img/register-cgto/attention.svg') no-repeat;
  width: 16px;
  height: 16px;
  display: inline-block;
  top: 3px;
  position: relative;
  margin-right: 3px;
}

.form-group.has-error .help-block{
  visibility: visible;
}

.no-error-field .form-group .help-block{
  visibility: hidden;
}

.cgto-button{
  background: #833AE0;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 400;
  font-family: Montserrat, sans-serif;
  opacity: inherit;
  border: none;
  cursor: pointer;
}

.cgto-button:hover{
  opacity: 0.95;
}

.line{
  border-top: 1px dashed #0F1C2C20;
  width: 100%;
  margin: 24px 0;
}

.cgto-region-auth-link{
  background: #F0DAFF;
  color: #833AE0 !important;
  text-decoration: none !important;
}

.cgto-region-auth-form, .cgto-region-register-form{
  width: 100%;
}
.form-content{
  width: 396px;
}
