/* app.css (no CSS variables) */

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1000px 600px at 20% 0%, #13254e 0%, #0b1220 60%);
  color:#e8eefc;
}

a{color:#4f8cff; text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:980px; margin:0 auto; padding:24px}
.auth-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px}

.card{
  width:100%;
  /*max-width:460px;*/
  background:rgba(17,26,46,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding:22px;
}

.brand{font-weight:800; letter-spacing:.2px; font-size:22px}
.sub{color:#a8b3d6; margin-top:6px; margin-bottom:14px; font-size:14px}

.row{display:flex; gap:10px}
.row > *{flex:1}

.label{display:block; font-size:13px; color:#a8b3d6; margin:10px 0 6px}

.input{
  width:100%;
  padding:12px 12px;
  background:rgba(255,255,255,.04);
  color:#e8eefc;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  outline:none;
}
.input:focus{
  border-color:rgba(79,140,255,.6);
  box-shadow:0 0 0 4px rgba(79,140,255,.12);
}

select.input option {
  color: #202e4f;
}


.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  font-weight:700;
  cursor:pointer;
}
/* ===== Primary Button ===== */
.btn-primary {
  background: rgba(79, 140, 255, 0.95);      /* main blue */
  border: 1px solid rgba(79, 140, 255, 0.85);
  color: #061022;                            /* dark text for contrast */
  font-weight: 800;
}

.btn-primary:hover {
  background: rgba(79, 140, 255, 1);
  border-color: rgba(79, 140, 255, 1);
  color: #e8eefc;
}

.btn-primary:active {
  background: rgba(63, 125, 240, 1);
  border-color: rgba(63, 125, 240, 1);
  transform: translateY(1px);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.45);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(79, 140, 255, 0.45);
  border-color: rgba(79, 140, 255, 0.35);
  color: #1c2a4a;
}

/* ===== Ghost Button ===== */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e8eefc;
  font-weight: 800;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #ffffff;
}

.btn-ghost:active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(1px);
}

.btn-ghost:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

.btn-ghost:disabled,
.btn-ghost[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background: transparent;
  border-color: rgba(255,255,255,0.05);
  color: #a8b3d6;
}

/* ===== Danger Button ===== */
.btn-danger {
  background: rgba(231, 76, 60, 0.18);          /* soft red */
  border: 1px solid rgba(231, 76, 60, 0.45);
  color: #ffecec;                               /* light red-white */
  font-weight: 800;
}

.btn-danger:hover {
  background: rgba(231, 76, 60, 0.28);
  border-color: rgba(231, 76, 60, 0.65);
  color: #ffffff;
}

.btn-danger:active {
  background: rgba(231, 76, 60, 0.38);
  border-color: rgba(231, 76, 60, 0.8);
  transform: translateY(1px);
}

.btn-danger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.35);
}

.btn-danger:disabled,
.btn-danger[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.25);
  color: #f2c9c6;
}

/* ===== Success Button ===== */
.btn-success {
  background: rgba(46, 204, 113, 0.18);          /* soft green */
  border: 1px solid rgba(46, 204, 113, 0.45);
  color: #e8fff3;                                /* light green-white text */
  font-weight: 800;
}

.btn-success:hover {
  background: rgba(46, 204, 113, 0.28);
  border-color: rgba(46, 204, 113, 0.65);
  color: #ffffff;
}

.btn-success:active {
  background: rgba(46, 204, 113, 0.38);
  border-color: rgba(46, 204, 113, 0.8);
  transform: translateY(1px);
}

.btn-success:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.35);
}

.btn-success:disabled,
.btn-success[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.25);
  color: #cfe9dd;
}


.hr{border:0; border-top:1px solid rgba(255,255,255,.08); margin:16px 0}
.note{font-size:13px; color:#a8b3d6}

.flash{padding:10px 12px; border-radius:12px; margin:10px 0; transition: opacity .4s ease, transform .4s ease;}
.flash.ok{background:rgba(72,187,120,.15); border:1px solid rgba(72,187,120,.35)}
.flash.err{background:rgba(255,90,106,.12); border:1px solid rgba(255,90,106,.35)}
.flash.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:16px}
.avatar{width:84px; height:84px; border-radius:84px; object-fit:cover; border:1px solid rgba(255,255,255,.08)}
