
*{box-sizing:border-box}

:root{
  --bg:#f3f4f6;
  --card:#fff;
  --text:#24292f;
  --muted:#73777d;
  --border:#dfe2e5;
  --accent:#0082c9;
  --accent-hover:#006fae;
}

body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login{
  width:100%;
  max-width:390px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:8px;
  padding:38px;
  box-shadow:0 4px 18px rgba(0,0,0,.06);
}

.logo{
  width:54px;
  height:54px;
  margin:0 auto 22px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  font-weight:600;
}

h1{
  margin:0;
  text-align:center;
  font-size:23px;
  font-weight:400;
}

.subtitle{
  text-align:center;
  color:var(--muted);
  font-size:14px;
  margin:8px 0 28px;
}

label{
  display:block;
  font-size:13px;
  margin-bottom:7px;
  color:#555b61;
}

input,select{
  width:100%;
  padding:11px 12px;
  border:1px solid #cfd3d7;
  border-radius:5px;
  background:#fff;
  color:var(--text);
  font-size:14px;
  outline:none;
}

input:focus,select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(0,130,201,.12);
}

.field{
  margin-bottom:17px;
}

button{
  border:0;
  border-radius:5px;
  background:var(--accent);
  color:white;
  padding:11px 18px;
  font-size:14px;
  cursor:pointer;
}

button:hover{
  background:var(--accent-hover);
}

.login-btn{
  width:100%;
  margin-top:3px;
}

.error{
  display:none;
  color:#b42318;
  font-size:13px;
  text-align:center;
  margin-top:13px;
}

.footer{
  color:#969ba1;
  font-size:11px;
  text-align:center;
  margin-top:25px;
}


/* SETTINGS */

.dashboard{
  display:none;
  width:100%;
  max-width:900px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:500;
}

.brand-logo{
  width:34px;
  height:34px;
  border-radius:7px;
  background:var(--accent);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
}

.logout{
  background:white;
  color:#666;
  border:1px solid var(--border);
}

.logout:hover{
  background:#f8f8f8;
}

.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:30px;
  box-shadow:0 4px 18px rgba(0,0,0,.05);
}

.panel h2{
  margin:0 0 5px;
  font-size:21px;
  font-weight:400;
}

.description{
  color:var(--muted);
  font-size:13px;
  margin-bottom:27px;
}

.section{
  border-top:1px solid var(--border);
  padding:22px 0;
}

.section:first-of-type{
  border-top:0;
  padding-top:0;
}

.section-title{
  font-size:13px;
  font-weight:600;
  color:#555;
  margin-bottom:12px;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.row{
  display:grid;
  grid-template-columns:1fr 260px;
  gap:25px;
  align-items:center;
  padding:13px 0;
}

.row-title{
  font-size:14px;
}

.row-help{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}


/* SWITCH */

.switch{
  position:relative;
  display:inline-block;
  width:40px;
  height:22px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  inset:0;
  background:#c8ccd0;
  border-radius:20px;
  cursor:pointer;
  transition:.2s;
}

.slider:before{
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  left:3px;
  top:3px;
  background:white;
  border-radius:50%;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  transition:.2s;
}

.switch input:checked + .slider{
  background:var(--accent);
}

.switch input:checked + .slider:before{
  transform:translateX(18px);
}

.save{
  margin-top:8px;
}

@media(max-width:650px){
  .login{
    padding:28px;
  }

  .panel{
    padding:22px;
  }

  .row{
    grid-template-columns:1fr;
    gap:10px;
  }
}

