/* assets/register-theme.css, the registration form (student and faculty) in the sage-green card style:
   light page, one rounded white card per section with an icon heading, big soft inputs, dashed document boxes with their own icon,
   a declaration card and a full-width Submit button. Only applies while the Register pane is showing (body.reg-mode, set by
   assets/register-theme.js); the Sign In and Reset Password screens keep their own look. */
body.reg-mode{
  --purple:#4a796b; --purple-600:#4a796b; --purple-050:#e8f0ed;
  background:#f7faf8;color:#2c3e3a;justify-content:flex-start;padding:24px 16px 48px;gap:16px}
body.reg-mode .brand-header span{color:#1d2b27}
body.reg-mode .brand-header span b{color:#4a796b}
body.reg-mode .stage{max-width:760px;background:transparent;box-shadow:none;overflow:visible;border-radius:0}
body.reg-mode .formside{padding:0;max-height:none;overflow:visible}
body.reg-mode .fhead{margin-bottom:16px}
body.reg-mode .fhead h1{font-size:26px;font-weight:800;color:#1d2b27;letter-spacing:-.4px}
body.reg-mode .fhead p{font-size:13px;color:#6b7c76;margin-top:4px}
body.reg-mode .foot-note{color:#9ca3af;margin-top:18px}

/* section cards */
.rt-cards{display:block}
.rt-card{background:#fff;border:1px solid #e2e8e4;border-radius:18px;padding:20px 22px;margin-bottom:16px}
.rt-h{display:flex;align-items:center;gap:10px;font-size:16.5px;font-weight:600;color:#4a796b;padding-bottom:12px;margin:0 0 16px;border-bottom:1px solid #e2e8e4}
.rt-h svg{flex-shrink:0;width:21px;height:21px}
.rt-desc{font-size:13px;color:#6b7c76;margin:-2px 0 14px;line-height:1.5}
body.reg-mode .rt-card .photo-row{margin:0;padding:0;border:0}
body.reg-mode .photo{background:linear-gradient(135deg,#6b8f80,#4a796b)}
body.reg-mode .photo-row h4{font-family:var(--font-sans)!important;font-size:15px!important;color:#2c3e3a}

/* fields */
body.reg-mode .grid{gap:14px}
body.reg-mode .group label{font-size:13px;font-weight:600;color:#2c3e3a;margin-bottom:6px}
body.reg-mode .group label.req::after{color:#d23631}
body.reg-mode .group input,body.reg-mode .group select,body.reg-mode .group textarea{padding:10px 14px;font-size:14px;border:1px solid #e2e8e4;border-radius:11px;background:#fafcfb;color:#2c3e3a}
body.reg-mode .group input::placeholder,body.reg-mode .group textarea::placeholder{color:#9ca3af}
body.reg-mode .group input:focus,body.reg-mode .group select:focus,body.reg-mode .group textarea:focus{border-color:#4a796b;background:#fff;box-shadow:0 0 0 4px rgba(74,121,107,.14)}
body.reg-mode .group.bad input,body.reg-mode .group.bad select{border-color:#d23631;background:#fef2f2}
body.reg-mode .btn-ghost{background:#eef3f0;color:#2c3e3a;border-radius:10px;padding:9px 14px;font-size:13px}
body.reg-mode .btn-ghost:hover{background:#e2ebe6}
/* helper lines get a small info mark in front, like the reference */
body.reg-mode .field-hint,body.reg-mode .pw-hint{display:flex;align-items:flex-start;gap:6px;font-size:12px;color:#9ca3af;margin-top:6px;line-height:1.45}
body.reg-mode .field-hint::before,body.reg-mode .pw-hint::before{content:'';flex-shrink:0;width:14px;height:14px;margin-top:2px;border-radius:50%;
  background:#9ca3af url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='6.2' y='6' width='1.6' height='5' rx='.8' fill='white'/%3E%3Ccircle cx='7' cy='4' r='1' fill='white'/%3E%3C/svg%3E") center/14px no-repeat}
body.reg-mode .pw-bar{background:#e2e8e4}

/* qualification rows (faculty) match the other inputs */
body.reg-mode .qual-row{grid-template-columns:2fr 2fr 80px 38px;gap:8px;margin-bottom:8px}
body.reg-mode .qual-row input{padding:10px 14px;font-size:14px;border:1px solid #e2e8e4;border-radius:11px;background:#fafcfb;color:#2c3e3a}
body.reg-mode .qual-row input:focus{outline:none;border-color:#4a796b;background:#fff;box-shadow:0 0 0 4px rgba(74,121,107,.14)}
body.reg-mode .qual-row button{border-radius:11px;background:#eef3f0;color:#6b7c76}
body.reg-mode #addQual{margin-bottom:6px!important}
@media(max-width:640px){body.reg-mode .qual-row{grid-template-columns:1fr 1fr}}
/* the card is already titled "Profile Photo", so the small repeated title inside is dropped */
body.reg-mode .photo-row h4{display:none}

/* document boxes */
body.reg-mode .grid.doc-row{gap:12px}
body.reg-mode .group:has(.upload-zone)>label{display:none}
body.reg-mode .upload-zone{border:2px dashed #dbe4df;border-radius:14px;padding:18px 10px;background:#fafcfb}
body.reg-mode .upload-zone:hover,body.reg-mode .upload-zone.drag,body.reg-mode .upload-zone:focus-visible{border-color:#4a796b;background:#eef3f0}
body.reg-mode .upload-zone .uz-icon{color:#4a796b;margin-bottom:8px}
body.reg-mode .upload-zone .uz-icon svg{width:30px;height:30px}
body.reg-mode .upload-zone .uz-label{font-size:14px;font-weight:500;color:#2c3e3a}
body.reg-mode .upload-zone .uz-label .rt-star{color:#d23631;margin-left:3px}
body.reg-mode .upload-zone .uz-title{font-size:12.5px;font-weight:400;color:#8a9a94;margin-top:4px}
body.reg-mode .upload-zone .uz-hint{display:none}
body.reg-mode .upload-zone.has-file{border-color:#4a796b;background:#eef6f2}
body.reg-mode .upload-zone.has-file .uz-title{color:#2c3e3a;font-weight:600}
body.reg-mode .upload-zone.has-file .uz-hint{display:block;color:#6b7c76}
body.reg-mode .group.bad .upload-zone{border-color:#d23631;background:#fef2f2}

/* declaration + submit */
.rt-decl{display:flex;gap:12px;align-items:flex-start;cursor:pointer;font-size:13px;line-height:1.55;color:#6b7c76}
.rt-decl input{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:#4a796b;cursor:pointer}
body.reg-mode .btn-main.rt-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px;border-radius:13px;background:#4a796b;color:#fff;font-size:15.5px;font-weight:700;box-shadow:none;margin:0}
body.reg-mode .btn-main.rt-submit::before{content:'';width:19px;height:19px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21.4 2.6a1 1 0 0 0-1-.2L2.9 9.2a1 1 0 0 0-.1 1.8l6.6 3 3 6.6a1 1 0 0 0 1.8-.1l6.8-17.5a1 1 0 0 0-.2-1.4zM10 13.3 5.8 11.4l11.9-4.6zm2.6 5L10.7 14l6.4-6.4z'/%3E%3C/svg%3E") center/contain no-repeat}
body.reg-mode .btn-main.rt-submit:hover{filter:none;background:#3f6a5d}
body.reg-mode .btn-main.rt-submit:disabled{opacity:.78;cursor:not-allowed;background:#4a796b}
body.reg-mode .switch-line{font-size:13px;color:#6b7c76;margin-top:16px}
body.reg-mode .switch-line .lnk{color:#4a796b}

@media (max-width:640px){
  body.reg-mode{padding:22px 14px 56px}
  .rt-card{padding:16px;border-radius:16px}
  .rt-h{font-size:16px}
  body.reg-mode .fhead h1{font-size:23px}
}
