:root{
  --text:#5c503b;
  --muted:#8c7d65;
  --gold:#bfa56a;
  --gold-dark:#a88e54;
  --line:rgba(191,165,106,.24);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.86)),
    url('../images/login-bg-desktop.jpg') center/cover no-repeat fixed;
}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.container{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.login-flow{
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background:transparent;
  border:0;
  box-shadow:none;
}
.login-back{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  margin-bottom:18px;
  border-radius:999px;
  color:#6b5a3c;
  font-size:13px;
  font-weight:800;
  background:rgba(255,255,255,.34);
}
.login-icon{
  width:118px;
  height:118px;
  object-fit:contain;
  display:block;
  margin:0 0 12px;
  filter:drop-shadow(0 10px 16px rgba(64,50,30,.12));
}
.login-title{
  margin:0 0 24px;
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  color:#584b37;
}
.login-form{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.login-field{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:left;
}
.login-field span{
  font-size:13px;
  font-weight:800;
  color:#6d604a;
}
.login-field input{
  width:100%;
  min-height:46px;
  border-radius:14px;
  border:1px solid #e6ddcf;
  background:rgba(255,255,255,.86);
  color:var(--text);
  padding:12px 14px;
  outline:none;
}
.login-field input:focus{
  border-color:rgba(191,165,106,.65);
  box-shadow:0 0 0 4px rgba(191,165,106,.14);
}
.login-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  min-width:148px;
  padding:0 22px;
  margin-top:4px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  background:linear-gradient(180deg,#c9b279,#a98e52);
  color:#fff;
  font-size:13px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(98,75,32,.18);
}
.login-button:hover,.login-button:focus-visible{
  background:linear-gradient(180deg,#d2bd85,#9f8449);
  box-shadow:0 10px 22px rgba(98,75,32,.22);
}
@media (max-width:640px){
  body{
    background:
      linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.76)),
      url('../images/login-bg-mobile.jpg') center/cover no-repeat fixed;
  }
  .container{padding:18px 18px 26px;align-items:flex-start;justify-content:center;padding-top:46px;}
  .login-icon{width:104px;height:104px;}
  .login-title{font-size:14px;margin-bottom:22px;}
  .login-form{gap:13px;}
}
@media (max-width:420px){
  .login-icon{width:96px;height:96px;}
  .login-button{min-width:132px;}
}


.login-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
  text-align: center;
}

.login-link {
  color: var(--accent, #0f6f78);
  font-size: 0.92rem;
  text-decoration: none;
  font-weight: 600;
}

.login-link:hover,
.login-link:focus {
  text-decoration: underline;
}

.login-message {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-message--inactive {
  color: #9a3412;
}
