:root{
  --login-brand: var(--brand);
}
/* Selection */
::selection{
  background: var(--login-brand);
  color: #fff;
}

body.login-body{
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(circle at 10% 10%, rgba(64,78,120,0.35), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(239,184,78,0.18), transparent 45%),
    #0b0c12;
  font-family: "Google Sans","Segoe UI",sans-serif;
  color: #e9ebf5;
}

.login-shell{
  width: 100%;
  max-width: 780px;
  padding: 40px 16px 80px;
  display: flex;
  justify-content: center;
}

.login-card{
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.45);
  padding: 32px 36px 40px;
  width: 100%;
  max-width: 620px;
  box-sizing: border-box;
}

.login-logo{
  text-align: center;
  margin-bottom: 18px;
}
.login-logo img{
    width: 160px;
    height: auto;
    box-shadow: 0px 0px 16px 0px #fffcb642;
    border-radius: 30px;
    margin: 20px;
}
.login-logo h1{
  margin: 6px 0 4px;
  font-size: 34px;
  color: var(--login-brand);
  font-weight: 600;
}
.login-logo p{
  margin: 0;
  color: #9aa3bf;
  font-size: 14px;
}

.welcome{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
}
.welcome .emoji{
  font-size: 30px;
  line-height: 1;
}
.welcome h3{
  margin: 0 0 4px;
  font-size: 22px;
  color: #f5f7fb;
}
.welcome p{
  margin: 0;
  color: #b3bbce;
}
.welcome a{
  color: var(--login-brand);
  text-decoration: none;
}
.welcome a:hover{
  text-decoration: underline;
}

.auth-alert{
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin: 12px 0;
}
.auth-alert.error{
  background: #ffe8e6;
  border: 1px solid #f5b1aa;
  color: #9d1b0c;
}
.auth-alert.success{
  background: #e4f7e9;
  border: 1px solid #b4e5c2;
  color: #1a6b2f;
}

.social-login{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 16px;
}
.login-with-google-btn,
.login-with-facebook-btn{
  transition: background-color .3s, box-shadow .3s;
  /*padding: 14px 16px 14px 42px;*/
  border: none;
  border-radius: 6px;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .18);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.login-with-google-btn{
  background-image: url(../images/icons/google.svg);
  background-size: 28px 28px;
  background-color: #FFFFFF;
  background-repeat: no-repeat;
  background-position: 12px center;
  color: #555;
  flex: 1 1 70%;
}
.login-with-facebook-btn{
  background-image: url(../images/icons/facebook.svg);
  background-size: 24px 24px;
  background-color: #1877F2;
  color: white;
  background-repeat: no-repeat;
  background-position: center;
  flex: 1 1 30%;
}
.login-with-google-btn:hover,
.login-with-facebook-btn:hover{
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
}
.login-with-google-btn:active,
.login-with-facebook-btn:active{
  background-color: #eeeeee;
}
.login-with-facebook-btn:active{
  background-color: #1565d4;
}
.login-with-google-btn:focus,
.login-with-facebook-btn:focus{
  outline: none;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 3px #c8dafc;
}
.login-with-google-btn:disabled,
.login-with-facebook-btn:disabled{
  filter: grayscale(100%);
  background-color: #ebebeb;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
  cursor: not-allowed;
}

.separator{
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: #9aa3bf;
  font-size: 14px;
}
.separator::before,
.separator::after{
  content: '';
  flex: 1;
  border-bottom: 1px solid #2b3648;
}
.separator:not(:empty)::before{ margin-right: .25em; }
.separator:not(:empty)::after{ margin-left: .25em; }

.login-form{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}
.login-form .field{
  width: 100%;
  margin-bottom: 12px;
}
.login-form label{
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #b7c0d0;
}
.login-form .hint{
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}
.login-form input[type="email"],
.login-form input[type="password"],
.login-form select.auth-input{
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #2b3648;
  background: #0f1622;
  color: #e9edf6;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  height: 44px;
}
.login-form input[type="tel"]{
  height: 44px;
}
.phone-row{
  display: flex;
  gap: 8px;
}
.phone-code{
  width: 34%;
}
.phone-input{
  width: 66%;
}
.login-form input::placeholder{
  color: #7d8798;
}
.req{ color: #b00020; }
.forgot-password{
  align-self: flex-end;
  margin-top: 4px;
  color: var(--login-brand);
  text-decoration: none;
  font-size: 14px;
}
.forgot-password:hover{
  text-decoration: underline;
}
.login-form button{
  width: 100%;
  padding: 12px;
  background-color: var(--login-brand);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  margin-top: 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}
.login-form button:hover{
  background-color: var(--brand-hover);
}

.footer-links{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 15px;
  color: #9aa3bf;
}
.footer-links a{
  color: #9aa3bf;
  text-decoration: none;
}
.footer-links a:hover{
  text-decoration: underline;
}

@media (max-width: 768px){
  body.login-body{
    align-items: stretch;
  }
  .login-shell{
    padding: 0;
  }
  .login-card{
    border-radius: 0;
    box-shadow: none;
    padding: 24px 20px 30px;
  }
  .social-login{
    flex-direction: column;
  }
  .login-with-google-btn,
  .login-with-facebook-btn{
    width: 100%;
    flex: 1 1 auto;
  }
  .footer-links{
    gap: 16px;
    font-size: 14px;
  }
}
