@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #a51f35;
  --primary-dark: #761528;
  --navy: #102a43;
  --gold: #d9a441;
  --ink: #182b3a;
  --muted: #667784;
  --soft: #f7f1e7;
  --surface: #fffdf9;
  --line: #e7ddd0;
}

* { box-sizing: border-box; }
body { font-family: 'Manrope', sans-serif; color: var(--ink); background: var(--soft); }
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Space Grotesk', sans-serif; }
.topbar { background: var(--navy); box-shadow: 0 4px 18px #102a4333; }
.navbar-brand { letter-spacing: .3px; }
.brand-mark { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; background: var(--gold); color: var(--navy); margin-right: 7px; font-weight: 800; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.hero { background: linear-gradient(115deg, var(--navy) 0%, #163e5c 64%, var(--primary-dark) 100%); color: white; overflow: hidden; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); font-weight: 800; line-height: 1.05; }
.hero h1 span { color: var(--gold); }
.hero .lead { max-width: 650px; opacity: .9; }
.eyebrow { font-size: .76rem; letter-spacing: .18em; font-weight: 800; color: var(--primary); }
.hero .eyebrow { color: #f2cf83; }
.hero-card { background: #ffffff12; border: 1px solid #ffffff30; border-radius: 12px; padding: 32px; backdrop-filter: blur(10px); }
.hero-card li { margin: 13px 0; opacity: .9; }
.icon-circle, .success-icon { width: 65px; height: 65px; border-radius: 12px; display: grid; place-items: center; background: #d9a4412e; color: var(--gold); font-size: 28px; margin-bottom: 20px; }
.section-heading h2, .form-header h1 { font-weight: 800; }
.feature-card, .registration-card, .login-card, .profile-card, .stat-card, .card { background: var(--surface); border: 1px solid var(--line) !important; }
.feature-card { border-radius: 10px; padding: 30px; box-shadow: 0 10px 35px #102a4310; height: 100%; }
.feature-card i { font-size: 30px; color: var(--primary); }
.feature-card h5 { margin-top: 18px; font-weight: 750; }
.registration-card { max-width: 950px; border-radius: 12px; padding: 35px; box-shadow: 0 15px 50px #102a4312; }
.section-label { font-size: 1.05rem; font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; color: var(--navy); }
.section-label i { color: var(--primary); margin-right: 8px; }
.form-label { font-weight: 650; }
.form-label span { color: var(--primary); }
.form-control, .form-select { min-height: 48px; border-radius: 8px; border-color: #d9d0c4; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem #d9a44135; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); }
.photo-upload { display: flex; gap: 25px; align-items: center; }
.preview-box { width: 145px; height: 175px; border: 2px dashed #cdbfae; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: #fbf7f0; flex: none; }
.preview-box img { display: none; width: 100%; height: 100%; object-fit: cover; }
.preview-box i { font-size: 42px; color: #b8aa99; }
.success-card { max-width: 650px; background: var(--surface); padding: 45px; border-radius: 12px; box-shadow: 0 15px 50px #102a4314; }
.success-icon { background: #e9f5ed; color: #23834a; margin: 0 auto 20px; }
.student-summary { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.student-summary div { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 20px; }
.student-summary div:last-child { border: 0; }
.student-summary span, .stat-card small, .detail-row span { color: var(--muted); }
.login-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px; }
.login-card { width: min(430px, 100%); padding: 40px; border-radius: 12px; box-shadow: 0 15px 50px #102a4314; }
.login-logo { margin-bottom: 20px; }
.stat-card { border-radius: 10px; padding: 23px; display: flex; gap: 17px; align-items: center; box-shadow: 0 8px 25px #102a4310; }
.stat-card > i { font-size: 28px; color: var(--primary); }
.stat-card small { display: block; }
.stat-card strong { font-size: 1.7rem; }
.avatar { width: 45px; height: 55px; border-radius: 6px; object-fit: cover; }
.profile-card { padding: 25px; border-radius: 10px; text-align: center; box-shadow: 0 10px 35px #102a4312; }
.profile-photo { width: 210px; height: 250px; object-fit: cover; border-radius: 8px; }
.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.id-card-set { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.id-card { position: relative; width: min(607px, 100%); aspect-ratio: 607 / 431; margin: auto; overflow: hidden; background: white; box-shadow: 0 15px 45px #102a4330; }
.id-template { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.id-photo-window { position: absolute; left: .8%; top: 32%; width: 25.5%; height: 44%; padding: .7%; background: white; }
.id-photo-window img { width: 100%; height: 100%; object-fit: cover; display: block; }
.id-value { position: absolute; left: 52%; width: 46%; height: 7%; display: flex; align-items: center; justify-content: center; padding: 0 1%; overflow: hidden; background: white; border-bottom: 4px solid #f4ca2d; color: #3ca8d9; font-size: clamp(8px, 1.7vw, 16px); font-weight: 700; line-height: 1; white-space: nowrap; }
.id-name { top: 40%; }
.id-registration { top: 49.2%; }
.id-course-value { top: 58.5%; }
.id-department { top: 67.8%; }
.id-phone { position: absolute; left: 0; top: 80%; width: 28%; height: 7%; display: flex; align-items: center; background: white; color: #111; font-size: clamp(8px, 1.7vw, 16px); font-weight: 700; white-space: nowrap; }
.id-header { height: 85px; background: var(--navy); color: white; display: flex; align-items: center; padding: 12px 18px; gap: 12px; text-align: left; }
.id-header small { display: block; font-size: 8px; letter-spacing: .12em; margin-top: 4px; }
.id-logo { width: 46px; height: 46px; border-radius: 7px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.id-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.id-body { padding: 28px 22px; }
.id-photo { width: 125px; height: 150px; object-fit: cover; border-radius: 7px; border: 4px solid white; box-shadow: 0 5px 18px #102a4330; }
.id-body h2 { font-size: 20px; margin: 17px 0 5px; text-transform: uppercase; }
.id-reg { font-weight: 800; color: var(--primary); }
.id-course { font-weight: 650; margin-top: 12px; }
.id-dept { font-size: 13px; color: var(--muted); margin-top: 4px; }
.id-footer { background: var(--soft); color: var(--primary-dark); font-size: 10px; font-weight: 800; letter-spacing: .15em; padding: 12px; }
.footer { background: var(--navy); color: white; }
@media print { .topbar, .footer, .d-print-none { display: none !important; } .container { padding: 0 !important; } .id-card { box-shadow: none; margin: 0 auto; page-break-inside: avoid; } }
@media (max-width: 600px) { .registration-card { padding: 22px; } .photo-upload { align-items: flex-start; flex-direction: column; } .detail-row { flex-direction: column; gap: 4px; } }
