:root{
  --bg:#f4f5ff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --primary:#4c1d95;
  --primary2:#5b21b6;
  --border:#e5e7eb;
  --shadow: 0 14px 35px rgba(2,6,23,.10);
  --radius:16px;
}

*{box-sizing:border-box}
body.page{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, var(--bg), #ffffff);
}

.container{
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px 64px;
}

.page-title h1{
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
}
.page-title span{ color: var(--muted); font-weight: 700; }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Accordion */
.accordion{ border:0; }
.accordion__summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  background: #f7f4ff;
  border-bottom:1px solid var(--border);
}
.accordion__summary::-webkit-details-marker{display:none;}
.accordion__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background: var(--primary2);
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.accordion__text{ font-weight:800; }
.accordion__chev{
  font-size:18px;
  color:var(--muted);
  transition: transform .2s ease;
}
details[open] .accordion__chev{ transform: rotate(0deg); }

.accordion__body{ padding: 16px 18px; }

.muted{ color: var(--muted); margin:0 0 12px; }
.instructions{ max-width: 820px; }

.audio-box{
  padding:12px;
  border:1px solid var(--border);
  border-radius: 14px;
  background:#fafafa;
}
.audio-box__player{ width:100%; }

/* Form */
.form{
  padding: 18px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-size:13px;
  color:#111827;
  font-weight:700;
  margin: 0 0 6px;
}

.field input, .field select{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline:none;
  font-size:14px;
  background:#fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.field input:focus, .field select:focus{
  border-color: rgba(91,33,182,.55);
  box-shadow: 0 0 0 4px rgba(91,33,182,.12);
}

.field--full{ grid-column: 1 / -1; }

/* Payment card */
.pay-card{
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfbff;
}
.pay-card__title{
  font-weight: 800;
  margin-bottom: 6px;
}
.pay-card__text{
  color: var(--muted);
  font-size: 13px;
}


.actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-start;
}

.btn{
  border:0;
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  color:#fff;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(76,29,149,.20);
}
.btn:hover{ filter: brightness(1.03); }

/* Alerts */
.alert{
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}
.alert--error{
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}


.instructions-text h3{
  margin: 0 0 10px;
  font-size: 18px;
}
.instructions-text h4{
  margin: 14px 0 6px;
  font-size: 15px;
}
.instructions-text p{
  margin: 0 0 10px;
  line-height: 1.55;
}
.instructions-text ul, .instructions-text ol{
  margin: 6px 0 12px 18px;
}
.instructions-text li{
  margin: 4px 0;
  line-height: 1.5;
}




.exam-page{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:28px 16px;
}

.exam-card{
  width:100%;
  max-width:720px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.10);
  padding:32px 36px;
}

.exam-success{
  background:#eafaf1;
  color:#1f7a4d;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
  margin-bottom:22px;
}

.exam-title{
  font-size:30px;
  font-weight:800;
  margin:0 0 18px 0;
}

.exam-info{
  font-size:16px;
  color:#111827;
}

.exam-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  flex-wrap:wrap;
}

.exam-label{
  color:#6b7280;
  font-weight:600;
}

.exam-value{
  font-weight:700;
}

.exam-code{
  letter-spacing:1px;
}

.exam-divider{
  height:1px;
  background:#e5e7eb;
  margin:18px 0;
}

.exam-note{
  margin:0;
  color:#6b7280;
  font-size:14px;
}



.logout-fab{
  position: fixed;
  top: 18px;
  right: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  box-shadow: 0 10px 22px rgba(76,29,149,.20);
  z-index: 50;
}
.logout-fab:hover{ filter: brightness(1.03); }




.alert--info{
  background:#eef2ff;
  border:1px solid #c7d2fe;
  color:#1e3a8a;
}

.alert--success{
  background:#eafaf1;
  border:1px solid #bbf7d0;
  color:#166534;
}







.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e6ef;
  font-size: 15px;
  background: #fff;
}

.btn-secondary {
  background: #f2f3f7;
  color: #333;
}

.btn-secondary:hover {
  background: #e7e9f0;
}
.page-actions{
  display:flex;
  justify-content:flex-end;
  margin-bottom:14px;
}

.btn.btn-pill{
  border-radius:12px;
  padding:10px 16px;
}
.card select{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline:none;
  font-size:14px;
  background:#fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.card select:focus{
  border-color: rgba(91,33,182,.55);
  box-shadow: 0 0 0 4px rgba(91,33,182,.12);
}




.field textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline:none;
  font-size:14px;
  background:#fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field textarea:focus{
  border-color: rgba(38, 4, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 5, 89, 0.12);
}


.alpa-accordion {
  margin-top: 20px;
}

.acc-item {
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.acc-btn {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  background: #f3ecff;
  color: #000000;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.acc-btn:hover {
  background: #e7dbff;
}

.acc-btn.active {
  background: #330099;
  color: white;
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.acc-content p {
  padding: 10px 0;
  margin: 0;
}



/* --- upload progress (examiner) --- */
.uploadBox{
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.uploadBox progress{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}


.actions {
  width: 100%;
}



/* force upload block to align like other cards */
.upload-section {
  max-width: 980px;      /* подберите, можно 1000 */
  margin: 0 auto;        /* центр */
  padding: 0 24px;       /* как у остальных */
  box-sizing: border-box;
}

.upload-section form,
.upload-section .grid,
.upload-section .actions,
.uploadBox {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}



/* ===== REGISTER PAGE — COMPACT ALPA STYLE ===== */

body.page{
  background: #f4f7fb;
}

.register-page{
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 18px 56px;
}

.register-page .page-title{
  padding: 0 0 22px;
}

.register-page .page-title h1{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 700;
  color: #0f172a;
}

.register-page .page-title h1 span{
  color: #6b7280;
}

.register-page .card{
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.register-page .form{
  max-width: 560px;
  padding: 30px 34px 34px;
  background: rgba(255,255,255,.9);
  border: 1px solid #d7e3f3;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.register-page .grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.register-page .field--full{
  grid-column: auto;
}

.register-page .field label{
  display: block;
  margin-bottom: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.register-page .field input,
.register-page .field select{
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #c9d9ee;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}

.register-page .field input::placeholder{
  color: #7b8aa3;
}

.register-page .field input:focus,
.register-page .field select:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.register-page .pay-card{
  display: none;
}

.register-page .actions{
  margin-top: 22px;
}

.register-page .btn{
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f64e8 0%, #14a3df 100%);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37,99,235,.22);
  transition: .2s ease;
}

.register-page .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37,99,235,.3);
}

@media(max-width:768px){
  .register-page{
    padding: 28px 14px 44px;
  }

  .register-page .page-title h1{
    font-size: 30px;
  }

  .register-page .form{
    max-width: 100%;
    padding: 24px 18px;
  }
}


