/* Registration uses the same Rockview card, colors, borders and typography as login. */
body.registration-page { overflow-x: hidden; overflow-y: auto; }
.registration-card { width: 100%; max-width: 620px; padding: 38px 44px; border-top: 4px solid var(--primary-gold); border-radius:0; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.registration-card .watermark { background-image: url('../assets/rockview-university-cover.jfif'); background-size: contain; background-position: center; background-repeat: no-repeat; opacity: .045; }
.registration-header { margin: -38px -44px 24px; padding: 0 0 17px; }
.registration-header .brand-cover-frame { height: 96px; }
.registration-header .system-name { max-width: 100%; margin: 15px auto 0; padding: 0 20px; color: var(--dark-green); font-size: 12px; font-weight: 800; line-height: 1.45; letter-spacing: 1.15px; text-transform: uppercase; }
.registration-header .system-name::before, .registration-header .system-name::after { content: ''; display: inline-block; width: 20px; height: 1px; margin: 0 9px 4px; background: var(--primary-gold); }
.registration-header h1 { color: var(--primary-green); font-size: 28px; font-weight: 900; letter-spacing: 2px; line-height: 1.15; text-transform: uppercase; margin: 0; }
.registration-header h2 { color: var(--primary-gold); font-size: 18px; font-weight: 800; letter-spacing: 4px; line-height: 1.2; text-transform: uppercase; margin: 0; }
.registration-header .system-name { color: var(--dark-green); font-size: 12px; font-weight: 800; letter-spacing: 1.15px; text-transform: uppercase; margin: 15px auto 0; }
.registration-card .login-form { width: 100%; max-width: none; margin: 0; }
.form-heading { text-align: center; margin: 0 0 23px; }
.registration-card .page-title { font-size: 19px; color: var(--text-dark); margin: 0 0 7px; }
.registration-card .description { font-size: 13px; line-height: 1.55; color: #666; margin: 0; }
.registration-progress { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: 0; margin: 20px 0 24px; }
.registration-progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #888; position: relative; text-align: center; z-index: 0; }
.registration-progress li:not(:last-child)::after { content: ''; position: absolute; height: 2px; background: #dedede; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); z-index: -1; }
.registration-progress li.complete:not(:last-child)::after { background: var(--primary-green); }
.registration-progress li>span { display: grid; place-items: center; width: 32px; height: 32px; border-radius:0; border: 1px solid var(--border-color); background: #fff; color: #818181; font-size: 12px; font-weight: 800; }
.registration-progress li.active { color: var(--primary-green); font-weight: 750; }
.registration-progress li.active>span,.registration-progress li.complete>span { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.registration-progress small { font-size: 11px; line-height: 1.2; white-space: nowrap; }
.registration-card .form-message { margin-bottom: 16px; }
.step-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; color: #333; font-size: 14px; font-weight: 750; }
.step-title span { font-size: 11px; font-weight: 500; color: #888; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 18px; }
.registration-field { min-width: 0; }
.registration-card .registration-field label { display: block; margin: 0 0 6px; color: #555; font-size: 12px; font-weight: 650; }
.registration-card .registration-field input:not([type=hidden]),.registration-card .registration-field select { display: block; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 9px 11px; border: 1px solid var(--border-color); border-radius:0; background: #fff; color: #333; font: 14px "Segoe UI",Roboto,Arial,sans-serif; transition: border-color .2s; }
.registration-card .registration-field input:focus,.registration-card .registration-field select:focus { outline: 0; border-color: var(--primary-green); }
.registration-card .registration-field input[type=file] { height: auto; padding: 8px; font-size: 12px; }
.final-step-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.photo-field { padding: 14px; border: 1px dashed #c8d5cc; background: #fafcfb; }
.registration-card .field-note { font-size: 11px; color: #777; margin: 0 0 7px; }
.registration-review { min-height: 0; margin: 0; padding: 13px; border: 1px solid #e5e5e5; background: #fafafa; }
.registration-review h4 { margin: 0 0 9px; color: #315444; font-size: 13px; }
.registration-review dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; margin: 0; font-size: 11px; }
.registration-review dt { color: #777; }
.registration-review dd { margin: 2px 0 0; color: #333; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.step-actions .btn-submit,.step-actions .btn-secondary { width: auto; min-width: 120px; min-height: 42px; padding: 10px 16px; border-radius:0; font: 700 13px "Segoe UI",Roboto,Arial,sans-serif; cursor: pointer; transition: background-color .2s; }
.step-actions .btn-submit { border: 0; background-color: var(--primary-green); color: #fff; }
.step-actions .btn-submit:hover { background-color: #0f724d; }
.step-actions .btn-secondary { border: 1px solid var(--border-color); background: #fff; color: #555; }
.registration-card .form-links { margin-top: 18px; }
.registration-card .surveillance-note { margin-top: 16px; padding-top: 10px; border-top: 1px solid #eee; font-size: 11px; }
@media(max-width:600px) { .registration-card { max-width: 100%; padding: 30px 24px; } .registration-header { margin: -30px -24px 24px; } .registration-header .brand-cover-frame { height: 82px; } .registration-header .system-name { font-size: 11px; letter-spacing: .8px; } .field-grid { grid-template-columns: 1fr; gap: 12px; } .registration-progress small { font-size: 9px; } }
@media(max-width:380px) { .registration-card { padding: 25px 17px; } .registration-progress small { font-size: 8px; } .registration-progress li:not(:last-child)::after { left: calc(50% + 17px); right: calc(-50% + 17px); } .step-title { font-size: 12px; } }

/* Registration opens immediately; no splash or animation dependency. */
body.registration-page .registration-card{opacity:1!important;transform:none!important;animation:none!important}body.registration-page #registrationForm[hidden],body.registration-page #registrationConfirmation[hidden]{display:none!important}.registration-confirmation{padding:24px;border:1px solid #138b5f;border-top:4px solid #138b5f;background:#f2faf5;color:#203b2e;line-height:1.8}.registration-confirmation h2{font-size:22px;color:#0a5438;margin-bottom:16px}.registration-confirmation p{overflow-wrap:anywhere}.registration-confirmation .btn-submit{text-decoration:none;text-align:center;margin-top:24px}.registration-confirmation.email-pending{border-color:#d98218;background:#fff8ed}.registration-confirmation.email-pending h2{color:#a66210}

/* Final registration palette: identical to the login reference. */
html:has(body.registration-page){background:#d8d8d8}
body.auth-page.registration-page{--primary-green:#138b5f;--dark-green:#0a5438;--primary-gold:#d98218;--dark-gold:#a66210;--green:#138b5f;--gold:#d98218;background:#d8d8d8;color:#333;font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
body.auth-page.registration-page .registration-card{background:#fff;border-top:4px solid #d98218;border-right:1px solid #d1d1d1;border-bottom:1px solid #d1d1d1;border-left:1px solid #d1d1d1;box-shadow:0 4px 15px #0000001a}
body.registration-page .registration-header h1{color:#138b5f;font-size:28px;font-weight:900;letter-spacing:2px;margin:0}
body.registration-page .registration-header h2{color:#d98218;font-size:18px;font-weight:800;letter-spacing:4px;margin:0}
body.registration-page .registration-service{color:#888;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;margin:10px 0 0}
body.registration-page .page-title,body.registration-page .step-title{color:#0a5438}
body.registration-page .registration-progress{background:#f5f5f5;border-color:#d1d1d1}
body.registration-page .registration-progress li.active>span{background:#138b5f;border-color:#138b5f;box-shadow:0 0 0 4px #138b5f18;color:white}
body.registration-page .registration-progress li.active small{color:#138b5f}
body.registration-page .registration-progress li.complete>span{background:#d98218;border-color:#d98218;color:white}
body.registration-page .registration-progress li.complete:after{background:#d98218}
body.registration-page .step-actions .btn-primary,body.registration-page .step-actions .btn-submit,body.registration-page .registration-confirmation .btn-submit{background:#138b5f;border-color:#138b5f;color:#fff}
body.registration-page .step-actions .btn-primary:hover,body.registration-page .step-actions .btn-submit:hover{background:#0a5438;border-color:#0a5438}
body.registration-page .registration-field input.form-control,body.registration-page .registration-field select.form-select{border-color:#d1d1d1;background:#fff;color:#333}
body.registration-page .registration-field :is(input,select):focus{border-color:#138b5f;box-shadow:0 0 0 3px #138b5f18}
body.registration-page .form-links a{color:#0a5438;border-color:#d98218}


/* Staff-authorised SLPS unit assignment during student registration. */
.student-unit-verify-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.student-unit-verify-row input{min-width:0}
.student-unit-verify-row button{min-width:132px;white-space:nowrap}
.student-unit-verify-row button:disabled{opacity:.6;cursor:not-allowed}
.student-unit-verification{margin-top:8px;padding:10px 12px;border:1px solid var(--border,#d7e0e5);border-radius:8px;background:rgba(100,116,139,.08);color:var(--muted,#64748b);font-size:13px;line-height:1.5}
.student-unit-verification.success{border-color:#22966b;background:rgba(34,150,107,.10);color:#16845d;font-weight:650}
.student-unit-verification.error{border-color:#c94c4c;background:rgba(201,76,76,.09);color:#c84b4b;font-weight:650}
#assigned_unit_display:read-only{font-weight:700;border-color:rgba(34,150,107,.55)}
#campus_id:disabled{opacity:1;cursor:not-allowed;background:rgba(34,150,107,.08)}
@media(max-width:520px){.student-unit-verify-row{grid-template-columns:1fr}.student-unit-verify-row button{min-height:42px}}
