:root{
  --navy:#071B3A;
  --blue:#2563EB;
  --blue2:#1D4ED8;
  --muted:#64748B;
  --border:#E6ECF5;
  --bg:#F4F8FF;
  --card:#FFFFFF;
  --danger:#EF4444;
  --success:#16A34A;
  --shadow:0 24px 70px rgba(15,23,42,.10);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%,rgba(37,99,235,.14),transparent 32%),
    radial-gradient(circle at 85% 75%,rgba(56,189,248,.16),transparent 30%),
    var(--bg);
  color:var(--navy);
}

a{text-decoration:none;color:var(--blue);font-weight:800}

.auth-page{
  min-height:100vh;
  display:grid;
  grid-template-columns:470px 1fr;
  gap:34px;
  align-items:center;
  width:min(1180px,calc(100% - 34px));
  margin:auto;
  padding:34px 0;
}

.auth-card{
  background:rgba(255,255,255,.94);
  border:1px solid var(--border);
  border-radius:34px;
  padding:34px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}

.auth-brand{
  text-align:center;
  margin-bottom:24px;
}

.auth-brand img{
  width:78px;
  height:78px;
  object-fit:contain;
  margin-bottom:14px;
}

.auth-brand h1{
  margin:0 0 10px;
  font-size:34px;
}

.auth-brand p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

.google-btn{
  width:100%;
  min-height:52px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:16px;
  color:var(--navy);
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.google-btn span{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#DB4437;
  font-weight:900;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:22px 0;
  color:var(--muted);
}

.auth-divider:before,
.auth-divider:after{
  content:"";
  height:1px;
  background:var(--border);
  flex:1;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.auth-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:900;
  color:#26364F;
}

.auth-form input{
  width:100%;
  min-height:52px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:0 15px;
  font-size:15px;
  outline:none;
  background:#F8FAFC;
}

.auth-form input:focus{
  border-color:var(--blue);
  background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}

.remember{
  flex-direction:row !important;
  align-items:center;
  font-weight:700 !important;
  color:var(--muted) !important;
}

.remember input{
  width:auto;
  min-height:auto;
}

.auth-submit{
  min-height:54px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(37,99,235,.25);
}

.auth-message{
  display:none;
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  font-size:14px;
}

.auth-message.error{
  display:block;
  background:#FEF2F2;
  color:var(--danger);
}

.auth-message.success{
  display:block;
  background:#ECFDF5;
  color:var(--success);
}

.auth-switch{
  margin:22px 0 10px;
  text-align:center;
  color:var(--muted);
}

.back-home{
  display:block;
  text-align:center;
  margin-top:10px;
}

.auth-visual{
  min-height:620px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.auth-glow{
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.22),transparent 65%);
}

.auth-panel{
  position:relative;
  width:min(520px,100%);
  min-height:360px;
  border-radius:38px;
  background:
    radial-gradient(circle at 75% 25%,rgba(124,58,237,.35),transparent 34%),
    linear-gradient(135deg,#071B3A,#2563EB);
  color:#fff;
  padding:42px;
  box-shadow:0 35px 90px rgba(37,99,235,.24);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.auth-panel strong{
  font-size:42px;
  margin-bottom:14px;
}

.auth-panel span{
  color:rgba(255,255,255,.82);
  line-height:1.9;
}

.auth-mini-stat{
  margin-top:34px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.auth-mini-stat div{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  padding:18px;
}

.auth-mini-stat b{
  display:block;
  font-size:28px;
}

.auth-mini-stat small{
  color:rgba(255,255,255,.78);
}

@media(max-width:900px){
  .auth-page{
    grid-template-columns:1fr;
  }

  .auth-visual{
    display:none;
  }
}

@media(max-width:520px){
  .auth-page{
    width:calc(100% - 22px);
    padding:18px 0;
  }

  .auth-card{
    padding:24px;
    border-radius:26px;
  }

  .auth-brand h1{
    font-size:28px;
  }

  .auth-row{
    flex-direction:column;
    align-items:flex-start;
  }
}

.terms-check{
  line-height:1.8;
}

.terms-check a{
  display:inline;
}

.auth-submit:disabled{
  opacity:.72;
  cursor:not-allowed;
}

.google-btn:hover,
.auth-submit:hover{
  transform:translateY(-1px);
}

.google-btn,
.auth-submit{
  transition:.2s;
}

.optional-label{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-left:52px !important;
}

.toggle-password{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:#EEF4FF;
  color:var(--blue);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
}

