/* owners/css/index.css - improved look & smooth transitions */

:root{
  --bg:#eef2f6;
  --panel-bg:#ffffff;
  --muted:#6b7280;
  --accent:#0ea5a4;
  --accent-2:#06b6b4;
  --danger:#ef4444;
  --input-border:#e6edf3;
  --card-shadow: 0 18px 50px rgba(2,6,23,0.10);
  --radius:14px;
  --radius-sm:8px;
  --max-width:1100px;
  --transition: 360ms cubic-bezier(.2,.9,.25,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}

/* visually-hidden helper */
.visually-hidden{
  position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:-1px;
}

/* outer container */
.auth-wrap{
  width:100%;
  max-width:var(--max-width);
  height:640px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  box-shadow:var(--card-shadow);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(180deg,#fff,#fff);
}

/* right: image panel with subtle parallax */
.auth-right{ position:relative; overflow:hidden; }
.image-panel{
  width:100%; height:100%;
  background-image: url('logo.png');
  background-size:cover;
  background-position:center;
  transition: transform 700ms cubic-bezier(.2,.9,.25,1), filter 500ms ease;
  will-change: transform;
}
.auth-wrap.tilt .image-panel{ transform: scale(1.03) translateX(6%); filter: saturate(1.05) contrast(1.02); }
.image-panel::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(2,6,23,0.18), rgba(2,6,23,0.06)); pointer-events:none; }

/* left: forms */
.auth-left{ padding:48px 40px; display:flex; align-items:center; background:var(--panel-bg); }
.auth-inner{ width:100%; max-width:460px; }
h1{margin:0 0 6px;font-size:26px;font-weight:700}
.muted{color:var(--muted);margin:0 0 18px;font-size:14px}
.small{font-size:13px;color:var(--muted)}
.err{background:#fff1f2;color:var(--danger);padding:10px;border-radius:8px;margin-bottom:12px}

/* forms and transitions */
.forms{ position:relative; min-height:320px; margin-bottom:8px; }
.form{
  position:absolute; inset:0; left:0; right:0;
  opacity:0; transform: translateY(12px) scale(.995);
  pointer-events:none;
  transition: opacity var(--transition), transform var(--transition);
}
.form.active{
  opacity:1; transform:none; pointer-events:auto;
}

/* inputs */
label{display:block;font-size:13px;margin-top:12px;color:#0f172a}
input[type="text"], input[type="email"], input[type="password"], textarea{
  width:100%; padding:12px 14px; margin-top:6px; border:1px solid var(--input-border);
  border-radius:var(--radius-sm); background:#fff; font-size:15px; color:#0f172a;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
input:focus{ outline:none; border-color: rgba(14,165,164,0.28); box-shadow: 0 0 0 8px rgba(6,182,180,0.06); }

/* password row (input + icon) */
.pwd-row{ display:flex; gap:8px; align-items:center; }
.pwd-row input{ flex:1; min-width:0; }
.btn-icon{
  background:transparent;
  border:1px solid transparent;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: #374151;
  transition: background .16s ease, color .16s ease, transform .14s ease;
  width:40px;
  height:40px;
}
.btn-icon:hover{ background: rgba(2,6,23,0.04); transform: translateY(-1px); }
.btn-icon:focus{ outline: 3px solid rgba(14,165,164,0.18); }
.btn-icon .icon-eye,
.btn-icon .icon-eye-off{ display:block; width:20px; height:20px; }
.btn-icon[aria-pressed="true"]{ color:#0ea5a4; background: rgba(14,165,164,0.06); }

/* actions */
.actions{ display:flex; gap:10px; align-items:center; margin-top:18px; flex-wrap:wrap }
button.primary{
  padding:11px 18px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border:0; color:#fff; border-radius:10px; cursor:pointer; font-weight:700;
  box-shadow: 0 10px 30px rgba(6,182,180,0.08);
}
.link-btn{ background:transparent; border:0; color:var(--muted); cursor:pointer; font-weight:600; padding:8px; border-radius:8px; }

/* password strength */
.pwd-strength{ margin-top:8px; height:8px; border-radius:6px; background:#f1f5f9; overflow:hidden; position:relative; }
.pwd-strength > i{ position:absolute; left:0; top:0; bottom:0; width:0%; background:linear-gradient(90deg,#fb923c,#10b981); transition:width 420ms ease; }

/* validation */
.validation-error{ outline:3px solid rgba(249,115,22,0.14); border-color:#fb923c !important; }

/* responsive */
@media (max-width:920px){
  .auth-wrap{ grid-template-columns: 1fr; height:auto; max-width:520px; }
  .auth-right{ order:-1; height:200px; }
  .image-panel{ background-position:center 35%; }
  .auth-left{ padding:24px; }
  .forms{ min-height:0; }
}

/* small utility */
.center{display:flex;align-items:center;justify-content:center}
