*{
  box-sizing:border-box
}
html,body{
  width:100%;
  height:100%;
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#05070b;
  color:#f5f5f5;
  overflow:hidden
}

.vm-login-page{
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:1fr 520px;
  background:radial-gradient(circle at 20% 30%,#1d2840 0,#05070b 42%,#020308 100%)
}

.vm-login-left{
  position:relative;
  overflow:hidden;
  padding:0;
  min-height:100vh;
}

.vm-main-logo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  user-select:none;
  pointer-events:none;
}

.vm-login-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  background:rgba(0,0,0,.18);
  border-left:1px solid rgba(255,255,255,.08)
}

.vm-login-card{
  width:100%;
  max-width:420px;
  padding:28px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(10,14,24,.78);
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  backdrop-filter:blur(14px)
}

.vm-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px
}
.vm-logo{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:linear-gradient(135deg,#1e90ff,#7b4dff);
  font-weight:800;
  font-size:26px
}
.vm-brand h1{
  margin:0;
  font-size:22px;
  line-height:1.1
}
.vm-brand p{
  margin:5px 0 0;
  color:rgba(255,255,255,.55);
  font-size:13px
}

.vm-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:18px;
  padding:4px;
  border-radius:12px;
  background:rgba(255,255,255,.06)
}
.vm-tab{
  height:38px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:rgba(255,255,255,.58);
  cursor:pointer;
  font-weight:700
}
.vm-tab.active{
  background:rgba(30,144,255,.22);
  color:#fff
}

.vm-form{
  display:none
}
.vm-form.active{
  display:block
}
.vm-form label{
  display:block;
  margin-bottom:13px
}
.vm-form span{
  display:block;
  margin-bottom:6px;
  color:rgba(255,255,255,.72);
  font-size:13px
}
.vm-form input{
  width:100%;
  height:42px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(255,255,255,.07);
  color:#fff;
  outline:none
}
.vm-form input:focus{
  border-color:rgba(30,144,255,.75);
  box-shadow:0 0 0 3px rgba(30,144,255,.16)
}

.vm-primary{
  width:100%;
  height:44px;
  margin-top:4px;
  border:0;
  border-radius:11px;
  background:#1e90ff;
  color:#fff;
  font-weight:800;
  cursor:pointer
}
.vm-primary:hover{
  filter:brightness(1.08)
}
.vm-primary:disabled{
  opacity:.55;
  cursor:not-allowed
}

.vm-message{
  min-height:20px;
  margin-top:16px;
  color:#ff6b7a;
  font-size:13px;
  text-align:center
}
.vm-message.ok{
  color:#62e68f
}

@media(max-width:900px){
  html,body{
    width:100%;
    min-height:100dvh;
    height:auto;
    overflow:auto;
  }

  .vm-login-page{
    width:100%;
    min-height:100dvh;
    height:auto;
    display:flex;
    flex-direction:column;
    background:radial-gradient(circle at 50% 10%,#1d2840 0,#05070b 42%,#020308 100%);
  }

  .vm-login-left{
    position:relative;
    flex:0 0 34dvh;
    width:100%;
    min-height:220px;
    max-height:340px;
    overflow:hidden;
    padding:0;
  }

  .vm-main-logo{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-height:none;
    object-fit:cover;
    object-position:center;
  }

  .vm-login-right{
    flex:1 1 auto;
    width:100%;
    padding:18px 16px 28px;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.06);
    background:rgba(0,0,0,.16);
  }

  .vm-login-card{
    width:100%;
    max-width:480px;
    margin:0 auto;
    padding:22px 18px;
    border-radius:16px;
  }

  .vm-brand{
    gap:12px;
    margin-bottom:20px;
  }

  .vm-logo{
    width:44px;
    height:44px;
    border-radius:12px;
    font-size:23px;
  }

  .vm-brand h1{
    font-size:20px;
  }

  .vm-brand p{
    font-size:12px;
  }

  .vm-tabs{
    gap:6px;
    margin-bottom:16px;
  }

  .vm-tab{
    height:40px;
    font-size:13px;
  }

  .vm-form label{
    margin-bottom:12px;
  }

  .vm-form input{
    height:44px;
    font-size:16px;
  }

  .vm-primary{
    height:46px;
    font-size:14px;
  }
}

@media(max-width:480px){
  .vm-login-left{
    flex-basis:28dvh;
    min-height:180px;
    max-height:260px;
  }

  .vm-main-logo{
    object-position:center;
  }

  .vm-login-right{
    padding:14px 12px 22px;
  }

  .vm-login-card{
    padding:18px 14px;
    border-radius:14px;
  }

  .vm-brand{
    margin-bottom:16px;
  }

  .vm-brand h1{
    font-size:18px;
  }

  .vm-brand p{
    font-size:11px;
  }

  .vm-tabs{
    margin-bottom:14px;
  }

  .vm-tab{
    height:38px;
    font-size:12px;
  }
}