/* ITI MIS Registration Styles - Pixel Perfect Match */
:root {
    --primary: #1B6B3A;
    --primary-dark: #145a2f;
    --primary-light: #e8f5ed;
    --accent: #E8913A;
    --accent-light: #fef3e5;
    --blue: #1B4B8E;
    --blue-light: #e8eef8;
    --danger: #D32F2F;
    --danger-light: #fdecea;
    --success: #2E7D32;
    --success-light: #e8f5e9;
    --text: #1a1a1a;
    --text-mid: #555;
    --text-light: #888;
    --border: #ddd;
    --bg: #f5f6f8;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout-btn {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c9302c;
    transform: translateY(-1px);
}

/* Login Tabs */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.login-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.login-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

/* User Type Selection */
.user-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.user-type-option {
    position: relative;
}

.user-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.user-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    min-width: 100px;
    text-align: center;
}

.user-type-option label i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-mid);
    transition: color 0.3s ease;
}

.user-type-option label span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
}

.user-type-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.user-type-option input[type="radio"]:checked + label i,
.user-type-option input[type="radio"]:checked + label span {
    color: var(--primary);
}

.user-type-option.selected label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.user-type-option.selected label i,
.user-type-option.selected label span {
    color: var(--primary);
}

/* External User Sub-type Selection */
.external-user-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.external-option {
    position: relative;
}

.external-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.external-option label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.external-option label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.external-option input[type="checkbox"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.external-option input[type="checkbox"]:checked + label::before {
    background: var(--primary);
    border-color: var(--primary);
    position: relative;
}

.external-option input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.external-option.selected label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Government Top Bar */
.gov-bar {
    background: linear-gradient(135deg, #1a2a4a 0%, #2a3a5a 100%);
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    border-bottom: 3px solid var(--accent);
}

.gov-bar .logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-bar .gov-text {
    line-height: 1.3;
}

.gov-bar .gov-text .t1 {
    font-weight: 600;
    font-size: 11.5px;
}

.gov-bar .gov-text .t2 {
    font-size: 10px;
    opacity: 0.75;
}

.gov-bar .right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gov-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gov-bar select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* Main Header */
.main-header {
    background: var(--primary);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}

.main-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-header .brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
}

.main-header .brand-text p {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 400;
    margin: 0;
}

.main-header .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-btn .dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 12px 5px 6px;
    border-radius: 24px;
    cursor: pointer;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-pill .uname {
    font-size: 13px;
    font-weight: 500;
}

/* User Dropdown */
.user-pill-wrapper {
    position: relative;
}
.user-pill-wrapper .pill-arrow {
    transition: transform 0.2s;
}
.user-pill-wrapper.open .pill-arrow {
    transform: rotate(180deg);
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFade 0.15s ease;
}
.user-pill-wrapper.open .user-dropdown {
    display: block;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
}
.user-dropdown-header .user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
}
.udd-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}
.udd-email {
    font-size: 12px;
    color: #666;
    margin-top: 1px;
}
.user-dropdown-divider {
    height: 1px;
    background: #e9ecef;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.user-dropdown-item:hover {
    background: #f0f7f0;
}
.user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
}
.user-dropdown-item.logout {
    color: var(--danger);
}
.user-dropdown-item.logout i {
    color: var(--danger);
}
.user-dropdown-item.logout:hover {
    background: #fff5f5;
}

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE V2
   ══════════════════════════════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - 100px);
    background: linear-gradient(135deg, #1a3a3a 0%, #2d1b4e 50%, #3a1a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}
.login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}
.login-blob-1 {
    width: 400px; height: 400px;
    background: #2dd4bf;
    top: -100px; left: -100px;
}
.login-blob-2 {
    width: 350px; height: 350px;
    background: #a78bfa;
    bottom: -80px; right: -80px;
}
.login-blob-3 {
    width: 250px; height: 250px;
    background: #f472b6;
    top: 40%; left: 60%;
}

/* Login Card */
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.lc-header {
    text-align: center;
    padding: 28px 24px 18px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}
.lc-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}
.lc-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.lc-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
.lc-body {
    padding: 24px 28px;
}

/* User Type Cards */
.login-utype-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.login-utype-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    text-align: center;
}
.login-utype-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.login-utype-card span {
    font-size: 11px;
    font-weight: 600;
    color: #444;
}
.login-utype-card:hover {
    border-color: #a7d7c5;
    background: #f0faf5;
}
.login-utype-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.login-utype-card.active span {
    color: var(--primary);
}

/* Colored avatar circles */
.luc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.luc-pink  { background: #fce4ec; color: #c2185b; }
.luc-teal  { background: #e0f2f1; color: #00897b; }
.luc-blue  { background: #e3f2fd; color: #1565c0; }
.luc-orange{ background: #fff3e0; color: #e65100; }

/* Info Banner */
.login-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-left: 3px solid #9ca3af;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.5;
}
.login-info-banner i {
    color: #9ca3af;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Sub-type Pills */
.login-subtype-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.login-subtype-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.login-subtype-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.login-subtype-pill i {
    font-size: 12px;
    color: #888;
}
.login-subtype-pill:hover {
    border-color: #a7d7c5;
}
.login-subtype-pill.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.login-subtype-pill.active i {
    color: var(--primary);
}

/* Field Label */
.login-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    margin-top: 14px;
}
.login-field-label .req {
    color: var(--danger);
}

/* Input Group with icon */
.login-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 0 14px;
    transition: border-color 0.2s;
    margin-bottom: 4px;
}
.login-input-group:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27,107,58,0.08);
}
.login-input-group > i {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}
.login-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.login-input-group input::placeholder {
    color: #aaa;
}
.login-eye-toggle {
    cursor: pointer;
    color: #9ca3af !important;
    font-size: 14px !important;
    margin-left: 4px;
}
.login-eye-toggle:hover {
    color: #666 !important;
}

/* CAPTCHA Box */
.login-captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 16px;
}
.lc-captcha-challenge {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    min-width: 90px;
    text-align: center;
    padding: 4px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}
.lc-captcha-input {
    flex: 1;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    outline: none;
    font-family: inherit;
}
.lc-captcha-input::placeholder {
    color: rgba(255,255,255,0.35);
}
.lc-captcha-input:focus {
    border-color: rgba(255,255,255,0.4);
}
.lc-captcha-refresh {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.lc-captcha-refresh:hover {
    color: #fff;
}

/* Remember + Forgot row */
.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    margin-bottom: 4px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.login-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}
.login-forgot {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}
.login-forgot:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855a0 50%, #be4b7c 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}
.login-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Error Alert */
.login-error-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Card Footer */
.lc-footer {
    text-align: center;
    padding: 18px 24px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}
.lc-footer p {
    font-size: 11px;
    color: #888;
    margin: 0 0 4px;
}
.lc-footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 4px;
}
.lc-footer-links a {
    color: #555;
    text-decoration: none;
}
.lc-footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.lc-footer-links span {
    color: #ccc;
}
.lc-footer-powered {
    font-size: 10px !important;
    color: #aaa !important;
}

/* Screen Tabs */
.screen-tabs {
    background: var(--primary-dark);
    display: flex;
    padding: 0 20px;
}

.screen-tab {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.screen-tab.active {
    color: white;
    border-bottom-color: white;
    font-weight: 600;
}

/* Panels */
.panel {
    display: none;
}

.panel.active {
    display: block;
}

/* Registration Container */
.reg-container {
    padding: 30px 20px;
    background: linear-gradient(170deg, var(--primary-light) 0%, var(--bg) 40%);
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.reg-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 580px;
    overflow: hidden;
}

.reg-card-header {
    background: var(--primary);
    color: white;
    padding: 24px 32px;
    text-align: center;
}

.reg-card-header h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.reg-card-header p {
    font-size: 14px;
    opacity: 0.85;
}

.reg-card-header .step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 10px;
}

/* Steps */
.reg-body {
    padding: 28px 32px;
}

.reg-step {
    display: none;
}

.reg-step.active {
    display: block;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-title .num {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-subtitle {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 24px;
    padding-left: 44px;
}

/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}

.pdot.done {
    background: var(--success);
}

.pdot.current {
    background: var(--accent);
    width: 32px;
    border-radius: 6px;
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .req {
    color: var(--danger);
    margin-left: 2px;
}

.form-group label .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 13px;
    margin-left: 4px;
}

.form-group .hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.1);
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

/* Option Group */
.option-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-card {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    background: white;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.option-card i {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 107, 58, 0.3);
}

.btn-outline {
    background: white;
    color: var(--text-mid);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-row .btn {
    flex: 1;
}

/* OTP Section */
.otp-section {
    background: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.otp-section .icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 8px;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-box {
    width: 52px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    outline: none;
    background: white;
}

.otp-box:focus {
    border-color: var(--accent);
}

.otp-timer {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

/* Password Strength */
.pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    height: 6px;
}

.pw-bar {
    height: 100%;
    flex: 1;
    border-radius: 3px;
    background: #e0e0e0;
    transition: background-color 0.3s ease;
}

.pw-bar.strong,
.pw-bar.success {
    background: var(--success);
}

.pw-bar.danger {
    background: var(--danger);
}

.pw-bar.warning {
    background: #ff9800;
}

.pw-bar.info {
    background: #2196f3;
}

/* Terms */
.terms-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.terms-box input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.terms-box label {
    font-size: 14px;
    color: var(--text-mid);
    cursor: pointer;
}

.terms-box a {
    color: var(--primary);
    font-weight: 600;
}

/* ════════════════════════════════════════════════
   DASHBOARD STYLES
   ════════════════════════════════════════════════ */

.dash-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--success);
    color: white;
    padding: 24px 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.welcome-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.welcome-info h2 {
    margin: 0;
    font-size: 24px;
}

.welcome-info p {
    margin: 4px 0 10px 0;
    opacity: 0.9;
    font-size: 15px;
}

.welcome-info .app-id {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid transparent;
}

.stat-card.blue { border-top-color: var(--blue); }
.stat-card.orange { border-top-color: var(--accent); }
.stat-card.green { border-top-color: var(--success); }
.stat-card.red { border-top-color: var(--danger); }

.stat-card .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.stat-card .lbl {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
}

/* Big Action Card */
.big-action {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.big-action .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.big-action .icon-box.green {
    background: var(--success-light);
    color: var(--success);
}

.big-action .icon-box.red {
    background: #fde8e8;
    color: #c62828;
}

.big-action .action-text {
    flex: 1;
}

.big-action .action-text h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.big-action .action-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--text-mid);
}

/* Timeline */
.timeline-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.timeline-section h3 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 80px;
    right: 80px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.tl-progress {
    position: absolute;
    top: 20px;
    left: 80px;
    height: 4px;
    background: var(--success);
    z-index: 1;
    max-width: calc(100% - 160px);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 100px;
    text-align: center;
}

.tl-dot {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.tl-step.done .tl-dot {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.tl-step.current .tl-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.tl-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.tl-date {
    font-size: 11px;
    color: var(--text-light);
}

.tl-step.done .tl-name { color: var(--success); font-weight: 700; }
.tl-step.current .tl-name { color: var(--accent); font-weight: 700; }

/* My Applications */
.my-apps-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.my-apps-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.app-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    gap: 14px;
}

.app-num {
    width: 32px;
    height: 32px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.app-details {
    flex: 1;
}

.app-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.app-meta {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 4px;
}

.app-status {
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-status.draft {
    background: #ffeecc;
    color: #e65100;
}

/* Help Section */
.help-section {
    background: #e9eef6;
    border-radius: var(--radius);
    padding: 16px 24px;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.help-icon {
    font-size: 24px;
    color: var(--blue);
}

.help-text {
    font-size: 14px;
    color: var(--text-mid);
}

.help-text strong {
    color: var(--blue);
    margin-right: 8px;
}

.help-text a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

/* ═══════════ APPLICATION FORM PANEL ═══════════ */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Progress Bar */
.top-progress {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
}
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.progress-header h3 { font-size: 16px; }
.progress-header .pct { font-size: 14px; font-weight: 600; color: var(--primary); }
.progress-bar-track {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), #2ecb6f);
    transition: width 0.5s ease;
}

/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.step-pill .snum {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.step-pill.done { background: var(--success-light); color: var(--success); }
.step-pill.done .snum { background: var(--success); }
.step-pill.current { background: var(--accent-light); color: #c96e10; font-weight: 600; }
.step-pill.current .snum { background: var(--accent); }

/* Form Content Area */
.form-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    justify-content: center;
}
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 700px;
    overflow: hidden;
}
.form-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 14px;
}
.form-card-header .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.form-card-header .step-icon.green { background: var(--primary-light); color: var(--primary); }
.form-card-header .step-icon.blue { background: var(--blue-light); color: var(--blue); }
.form-card-header .step-icon.orange { background: var(--accent-light); color: var(--accent); }
.form-card-header h2 { font-size: 20px; }
.form-card-header p { font-size: 13px; color: var(--text-mid); }

.form-card-body { padding: 24px 28px; }

/* App Step Panels */
.app-step { display: none; }
.app-step.active { display: block; }

/* Info Banner inside form */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}
.info-banner.green { background: var(--success-light); color: #1b5e20; }
.info-banner.blue { background: var(--blue-light); color: #0d47a1; }
.info-banner.orange { background: var(--accent-light); color: #bf360c; }
.info-banner i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }

/* Read-only field */
.ro-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.ro-field .ro-label { font-size: 13px; color: var(--text-light); min-width: 110px; }
.ro-field .ro-value { font-size: 16px; font-weight: 600; color: var(--text); }
.ro-field .lock-icon { margin-left: auto; color: #ccc; }

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area i { font-size: 36px; color: var(--primary); margin-bottom: 8px; }
.upload-area p { font-size: 15px; font-weight: 500; color: var(--text-mid); }

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Trade Cards */
.trade-card {
    border: 2px solid #eee;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.trade-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.trade-card.selected { border-color: var(--primary); background: var(--primary-light); }
.trade-card .tc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.trade-card .tc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.trade-card .tc-name { font-size: 17px; font-weight: 600; }
.trade-card .tc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.trade-card .tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.tag.dur { background: #e3f2fd; color: #1565c0; }
.tag.cert { background: #f3e5f5; color: #7b1fa2; }
.tag.seats { background: var(--success-light); color: var(--success); }

/* Preference Slot */
.pref-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.pref-slot .pref-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.pref-slot .pref-info { flex: 1; }
.pref-slot .pref-info .trade-name { font-weight: 600; font-size: 15px; }
.pref-slot .pref-info .iti-name { font-size: 13px; color: var(--text-mid); }
.pref-slot.empty { border-style: dashed; background: #fafafa; }
.pref-slot.empty .pref-num { background: #ccc; }

/* Review Section */
.review-section {
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}
.review-section .rs-head {
    padding: 12px 16px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
}
.review-section .rs-body { padding: 14px 16px; }
.review-section .rs-body p { margin-bottom: 6px; font-size: 14px; }

/* Footer Buttons */
.form-footer {
    padding: 16px 28px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}

/* ═══════════ SUCCESS PANEL ═══════════ */
.success-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(170deg, var(--success-light) 0%, var(--bg) 40%);
}
.success-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    width: 100%;
}
.success-card .big-check {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-card .big-check i { font-size: 50px; color: var(--success); }
.success-card h2 { font-size: 26px; color: var(--success); margin-bottom: 8px; }
.success-card p { font-size: 16px; color: var(--text-mid); margin-bottom: 24px; }

/* Education Level Cards */
.edu-level-group { display: flex; flex-direction: column; gap: 10px; }
.edu-level-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.edu-level-card:hover { border-color: var(--blue); background: var(--blue-light); }
.edu-level-card.selected { border-color: var(--blue); background: var(--blue-light); }
.edu-level-card .elc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.edu-level-card .elc-text { flex: 1; }
.edu-level-card .elc-title { font-size: 16px; font-weight: 600; color: var(--text); }
.edu-level-card .elc-check { font-size: 22px; color: #ccc; flex-shrink: 0; }
.edu-level-card.selected .elc-check { color: var(--blue); }

.edu-section { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Eligibility Check Box ── */
.eligibility-box {
    padding: 16px 20px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}
.eligibility-pass {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #1b5e20;
}
.eligibility-fail {
    background: #fbe9e7;
    border: 2px solid #e53935;
    color: #b71c1c;
}
.elig-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.elig-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.eligibility-pass .elig-icon { color: #2e7d32; }
.eligibility-fail .elig-icon { color: #c62828; }
.elig-title {
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
}
.elig-sub {
    font-size: 14px;
    margin-top: 2px;
    opacity: 0.85;
}

/* ── Hint text (optional label suffix) ── */
.hint-text {
    font-weight: 400;
    color: #999;
    font-size: 13px;
}

/* ── Education card subtitles ── */
.elc-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.form-hint {
    font-size: 13px;
    color: #888;
    margin: -4px 0 12px 0;
}

/* ── Education info banners ── */
.edu-info-banner {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.edu-info-banner i { flex-shrink: 0; }
.edu-info-banner.blue { background: #e3f2fd; color: #1565c0; }
.edu-info-banner.green { background: #e8f5e9; color: #2e7d32; }
.edu-info-banner.orange { background: #fff3e0; color: #e65100; }
.edu-info-banner.purple { background: #ede7f6; color: #4527a0; }

/* ── Percentage auto field ── */
.pct-auto {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-weight: 600;
    text-align: center;
}

/* ── Upload box ── */
.upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}
.upload-box:hover {
    border-color: var(--primary);
    background: #f0faf3;
}
.upload-icon {
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 8px;
}
.upload-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.upload-fname {
    display: none;
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
    word-break: break-all;
}

/* ── Document step sections ── */
.doc-section {
    margin-bottom: 28px;
    padding-bottom: 10px;
}
.doc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}
.doc-section-header i {
    font-size: 18px;
}
.doc-cat-label {
    font-weight: 400;
    font-size: 14px;
    color: #666;
}
.doc-optional-hint {
    font-weight: 400;
    font-size: 13px;
    color: #888;
}

/* ── Document upload box ── */
.doc-upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
    margin-bottom: 16px;
}
.doc-upload-box:hover {
    border-color: var(--primary);
    background: #f0faf3;
}
.doc-upload-box.uploaded {
    border-color: #4caf50;
    border-style: solid;
    background: #f0faf3;
}
.doc-upload-icon {
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 6px;
}
.doc-upload-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.doc-upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.doc-upload-check {
    font-size: 36px;
    color: #4caf50;
    margin-bottom: 6px;
}
.doc-upload-fname {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.doc-upload-meta {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ── Document checklist ── */
.doc-checklist {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 24px;
}
.doc-checklist-header {
    background: #f0faf3;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    color: #2e7d32;
    border-bottom: 1px solid #e0e0e0;
}
.doc-checklist-header i {
    margin-right: 6px;
}
.doc-checklist-body {
    padding: 0;
}
.doc-checklist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.doc-checklist-row:last-child {
    border-bottom: none;
}

/* ── Review & Submit step ── */
.review-section {
    margin-bottom: 24px;
}
.review-section-header {
    background: #f5f5f5;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #e0e0e0;
}
.review-section-header i {
    margin-right: 8px;
    color: #555;
}
.review-table {
    padding: 0;
}
.review-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.review-row:last-child {
    border-bottom: none;
}
.review-label {
    color: #888;
    min-width: 160px;
    flex-shrink: 0;
    font-size: 13px;
}
.review-value {
    color: #222;
    font-weight: 500;
}

/* Declaration box */
.declaration-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
}
.declaration-title {
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 10px;
}
.declaration-title i {
    margin-right: 6px;
}
.declaration-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.declaration-check {
    margin-top: 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 18px;
}
.declaration-check .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
}
.declaration-check .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4caf50;
}

/* Privacy / DPDP Notice box */
.privacy-box {
    background: #e8f4fd;
    border: 1px solid #90caf9;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
}
.privacy-title {
    font-size: 16px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 10px;
}
.privacy-title i {
    margin-right: 6px;
}
.privacy-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* ── Auto-save label ── */
.auto-save-label {
    font-size: 12px;
    color: #999;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Selected Above 12th card purple ── */
.edu-level-card[data-level="above"].selected {
    border-color: #4527a0;
    background: #ede7f6;
}

/* ── Same-as-permanent checkbox ── */
.same-address-check {
    background: #f0faf3;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2e7d32;
    cursor: pointer;
}

/* ITI Selection Cards */
.iti-select-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    margin-bottom: 10px;
}
.iti-select-card:hover { border-color: var(--primary); background: var(--primary-light); }
.iti-select-card.selected { border-color: var(--primary); background: var(--primary-light); }
.iti-select-card .isc-radio { font-size: 22px; color: #ccc; flex-shrink: 0; }
.iti-select-card.selected .isc-radio { color: var(--primary); }
.iti-select-card .isc-info { flex: 1; min-width: 0; }
.iti-select-card .isc-name { font-size: 16px; font-weight: 600; color: var(--text); }
.tc-select-badge { font-size: 20px; color: #ccc; }
.trade-card.selected .tc-select-badge { color: var(--success); }

/* ══════════════════════════════════════════════════════════════
   STANDALONE LOGIN PAGE V2 — /applicant/login
   Purple theme, glass header, SVG illustrated cards
   Matches iti_mis_login_v2.html reference design
   ══════════════════════════════════════════════════════════════ */

/* ── V2 CSS Variables ── */
.v2-login-wrapper {
    --v2-primary: #875A7B;
    --v2-primary-dark: #6f4565;
    --v2-primary-deep: #5a3750;
    --v2-primary-light: #a97d9d;
    --v2-primary-pale: #f3edf2;
    --v2-accent: #E8913A;
    --v2-accent-dark: #c77a2e;
    --v2-accent-light: #fdf0e0;
    --v2-teal: #00796B;
    --v2-teal-bg: #e0f2f1;
    --v2-blue: #1565C0;
    --v2-blue-bg: #e3f2fd;
    --v2-danger: #c0392b;
    --v2-danger-bg: #fdecea;
    --v2-success: #27ae60;
    --v2-success-bg: #eafaf1;
    --v2-text: #2c3e50;
    --v2-text-muted: #7f8c8d;
    --v2-border: #dce1e6;
    --v2-bg: #f4f6f8;
    --v2-white: #ffffff;
    --v2-glass: rgba(255,255,255,0.94);
    --v2-radius: 8px;
    --v2-radius-lg: 14px;
    --v2-radius-xl: 20px;
}
.v2-login-wrapper {
    font-family: 'Noto Sans', 'Segoe UI', sans-serif;
    color: var(--v2-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
.v2-login-wrapper * { box-sizing: border-box; }

/* Override Odoo website layout wrappers when v2 login page is active */
#wrapwrap:has(.v2-login-wrapper) {
    background: none !important;
    min-height: 0 !important;
}
#wrapwrap:has(.v2-login-wrapper) > main,
#wrapwrap:has(.v2-login-wrapper) #wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ════════════════ FULL-SCREEN BACKGROUND ════════════════ */
.bg-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-canvas .grad {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #4a2f42 0%, #5c3d52 18%, #3a4f5c 45%, #1a5c56 70%, #2d4a5a 100%);
}
.bg-canvas .scene {
    position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
    opacity: 0.06;
}
.bg-canvas .glow1 { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(232,145,58,0.18) 0%, transparent 70%); top: -10%; right: -5%; }
.bg-canvas .glow2 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0,121,107,0.12) 0%, transparent 70%); bottom: -8%; left: -5%; }
.bg-canvas .glow3 { position: absolute; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, rgba(135,90,123,0.1) 0%, transparent 70%); top: 40%; left: 35%; }
.bg-canvas .dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Animated floating particles */
.v2-particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06); animation: v2floatUp linear infinite; }
@keyframes v2floatUp {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ════════════════ HEADER BAR ════════════════ */
.gov-header {
    position: relative; z-index: 10;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px; height: 58px;
    display: flex; align-items: center; gap: 14px; color: var(--v2-white);
}
.gov-logo { height: 36px; filter: brightness(1.15) drop-shadow(0 1px 3px rgba(0,0,0,0.4)); }
.gov-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.2); margin: 0 4px; }
.gov-title { flex: 1; }
.gov-title h1 { font-size: 14.5px; font-weight: 700; letter-spacing: 0.2px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); margin: 0; }
.gov-title p { font-size: 11px; opacity: 0.75; margin-top: 1px; margin-bottom: 0; }
.gov-right { display: flex; align-items: center; gap: 12px; }
.gov-right select { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.gov-right select option { color: #333; background: #fff; }
.gov-help { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; opacity: 0.8; padding: 5px 10px; border-radius: 6px; transition: all 0.2s; color: #fff; text-decoration: none; }
.gov-help:hover { opacity: 1; background: rgba(255,255,255,0.1); }

/* ════════════════ MAIN AREA ════════════════ */
.login-main { position: relative; z-index: 5; flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 20px; }

/* ════════════════ LOGIN CARD ════════════════ */
.v2-login-card {
    background: var(--v2-glass);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    width: 520px; max-width: 100%;
    border-radius: var(--v2-radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.15);
    overflow: hidden;
    animation: v2cardIn 0.6s cubic-bezier(0.16,1,0.3,1);
}
@keyframes v2cardIn { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Card header with logo */
.card-top {
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-deep) 100%);
    padding: 22px 28px 18px; text-align: center;
    position: relative; overflow: hidden;
}
.card-top::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.card-top::after { content: ''; position: absolute; bottom: -30px; left: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(232,145,58,0.08); }
.card-logo { height: 46px; margin-bottom: 10px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); position: relative; }
.card-top h2 { font-size: 17px; font-weight: 700; color: #fff; position: relative; text-shadow: 0 1px 3px rgba(0,0,0,0.2); margin: 0; }
.card-top p { font-size: 12px; color: rgba(255,255,255,0.78); position: relative; margin-top: 2px; margin-bottom: 0; }

.v2-card-body { padding: 22px 28px 18px; }

/* ════════════════ ROLE SELECTOR — ILLUSTRATED CARDS ════════════════ */
.role-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }

.role-card {
    border: 2px solid #eaeaea; background: var(--v2-white); border-radius: 14px;
    padding: 14px 4px 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative; overflow: hidden;
}
.role-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: background 0.3s; border-radius: 14px 14px 0 0; }

/* Illustrated icon container */
.role-illust {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.role-illust svg { width: 48px; height: 48px; transition: transform 0.3s; }

.role-card .rlabel { font-size: 10.5px; font-weight: 600; color: var(--v2-text-muted); text-align: center; line-height: 1.2; transition: color 0.3s; margin-top: 2px; }

/* Hover */
.role-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(135,90,123,0.14); border-color: var(--v2-primary-light); }
.role-card:hover .role-illust svg { transform: scale(1.08); }

/* Active */
.role-card.active { border-color: var(--v2-primary); background: linear-gradient(180deg, var(--v2-primary-pale) 0%, #fff 100%); box-shadow: 0 6px 20px rgba(135,90,123,0.18); }
.role-card.active::before { background: var(--v2-primary); }
.role-card.active .rlabel { color: var(--v2-primary-dark); }
.role-card.active .role-illust svg { transform: scale(1.1); }

/* Role-specific bg tints */
.role-card[data-role="admin"] .role-illust { background: #f0e6ed; }
.role-card[data-role="admin"].active .role-illust { background: #e4d2df; }
.role-card[data-role="instructor"] .role-illust { background: var(--v2-teal-bg); }
.role-card[data-role="instructor"].active .role-illust { background: #b2dfdb; }
.role-card[data-role="student"] .role-illust { background: var(--v2-blue-bg); }
.role-card[data-role="student"].active .role-illust { background: #bbdefb; }
.role-card[data-role="external"] .role-illust { background: var(--v2-accent-light); }
.role-card[data-role="external"].active .role-illust { background: #fce0b8; }

/* ── ROLE HINT ── */
.role-hint { font-size: 11.5px; color: var(--v2-text-muted); text-align: center; margin-bottom: 16px; padding: 8px 14px; background: #f8f9fa; border-radius: 8px; border-left: 3px solid var(--v2-primary-light); line-height: 1.5; animation: v2fadeIn 0.3s ease; }
@keyframes v2fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── EXTERNAL SUB-CATEGORIES ── */
.ext-category { display: none; margin-bottom: 14px; }
.ext-category.show { display: block; animation: v2fadeIn 0.3s ease; }
.ext-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ext-pill { padding: 6px 13px; border: 1.5px solid var(--v2-border); border-radius: 20px; font-size: 12px; cursor: pointer; background: var(--v2-white); transition: all 0.2s; color: var(--v2-text-muted); display: flex; align-items: center; gap: 5px; }
.ext-pill i { font-size: 11px; }
.ext-pill:hover { border-color: var(--v2-accent); color: var(--v2-accent-dark); background: var(--v2-accent-light); }
.ext-pill.active { background: var(--v2-accent); border-color: var(--v2-accent); color: #fff; }

/* ── METHOD TOGGLE ── */
.v2-method-toggle { display: flex; background: #f1f3f5; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.v2-method-btn { flex: 1; padding: 9px 8px; border: none; background: transparent; border-radius: 8px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--v2-text-muted); transition: all 0.25s; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; }
.v2-method-btn.active { background: var(--v2-white); color: var(--v2-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.07); font-weight: 600; }

/* ── FORM ── */
.v2-form-group { margin-bottom: 14px; }
.v2-form-group label { display: block; font-size: 12.5px; font-weight: 500; color: var(--v2-text); margin-bottom: 5px; }
.v2-form-group label .req { color: var(--v2-danger); }
.v2-input-wrap { position: relative; }
.v2-input-wrap i.v2-fi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #aab2bd; font-size: 14px; pointer-events: none; transition: color 0.2s; }
.v2-input-wrap input, .v2-input-wrap select {
    width: 100%; padding: 11px 12px 11px 42px;
    border: 1.5px solid var(--v2-border); border-radius: 10px;
    font-size: 13.5px; font-family: inherit;
    transition: all 0.2s; background: var(--v2-white); color: var(--v2-text);
}
.v2-input-wrap input:focus, .v2-input-wrap select:focus { outline: none; border-color: var(--v2-primary); box-shadow: 0 0 0 3px rgba(135,90,123,0.1); }
.v2-input-wrap input:focus ~ i.v2-fi { color: var(--v2-primary); }
.v2-input-wrap input.error { border-color: var(--v2-danger); }
.v2-input-wrap .v2-toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #aab2bd; font-size: 14px; padding: 4px; background: none; border: none; }
.v2-input-wrap .v2-toggle-pass:hover { color: var(--v2-primary); }
.v2-field-error { font-size: 11.5px; color: var(--v2-danger); margin-top: 4px; display: none; }
.v2-field-error.show { display: block; }

/* ── CAPTCHA ── */
.v2-captcha-row { display: none; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px; background: #f8f9fa; border-radius: 10px; border: 1px solid var(--v2-border); }
.v2-captcha-row.show { display: flex; }
.v2-captcha-img {
    width: 120px; height: 42px;
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; letter-spacing: 5px; color: #2d3436;
    font-family: 'Courier New', monospace; user-select: none;
    position: relative; overflow: hidden;
}
.v2-captcha-img::before { content: ''; position: absolute; width: 100%; height: 1px; background: rgba(0,0,0,0.15); top: 45%; transform: rotate(-4deg); }
.v2-captcha-img::after { content: ''; position: absolute; width: 100%; height: 1px; background: rgba(0,0,0,0.1); top: 62%; transform: rotate(3deg); }
.v2-captcha-row input {
    flex: 1; padding: 9px 10px;
    border: 1.5px solid var(--v2-border); border-radius: 8px;
    font-size: 13px; font-family: inherit;
}
.v2-captcha-row input:focus { outline: none; border-color: var(--v2-primary); }
.v2-captcha-refresh { cursor: pointer; color: var(--v2-primary); font-size: 18px; padding: 4px; transition: transform 0.3s; background: none; border: none; }
.v2-captcha-refresh:hover { transform: rotate(180deg); }

/* ── INLINE ROW ── */
.v2-inline-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.v2-remember-me { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; color: var(--v2-text-muted); }
.v2-remember-me input { accent-color: var(--v2-primary); width: 15px; height: 15px; cursor: pointer; }
.v2-forgot-link { font-size: 12.5px; color: var(--v2-primary); text-decoration: none; font-weight: 500; }
.v2-forgot-link:hover { text-decoration: underline; }

/* ── PRIMARY BUTTON ── */
.v2-btn-login {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-dark) 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(135,90,123,0.3); position: relative; overflow: hidden;
}
.v2-btn-login::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%); pointer-events: none; }
.v2-btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(135,90,123,0.4); }
.v2-btn-login:active { transform: translateY(0); }
.v2-btn-login:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.v2-btn-login .v2-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: v2spin 0.6s linear infinite; display: none; }
@keyframes v2spin { to { transform: rotate(360deg); } }

/* ── ALERTS ── */
.v2-alert { padding: 10px 14px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px; display: none; align-items: flex-start; gap: 8px; line-height: 1.5; }
.v2-alert.show { display: flex; }
.v2-alert i { margin-top: 2px; flex-shrink: 0; }
.v2-alert-danger { background: var(--v2-danger-bg); color: var(--v2-danger); border: 1px solid #f5c6cb; }

/* ── REGISTER BAR ── */
.v2-register-bar { text-align: center; padding-top: 14px; border-top: 1px solid #f0f0f0; margin-top: 8px; font-size: 12.5px; color: var(--v2-text-muted); }
.v2-register-bar a { color: var(--v2-primary); font-weight: 600; text-decoration: none; }
.v2-register-bar a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.v2-login-footer { position: relative; z-index: 5; text-align: center; padding: 14px 20px; font-size: 11px; color: rgba(255,255,255,0.55); }
.v2-login-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.v2-login-footer a:hover { color: #fff; text-decoration: underline; }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 560px) {
    .login-main { padding: 16px 10px; }
    .v2-login-card { border-radius: var(--v2-radius-lg); }
    .v2-card-body { padding: 18px 16px 14px; }
    .card-top { padding: 16px 16px 14px; }
    .card-logo { height: 36px; }
    .role-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .role-card { padding: 10px 4px 8px; }
    .role-illust { width: 46px; height: 46px; }
    .role-illust svg { width: 38px; height: 38px; }
    .gov-right { display: none; }
    .gov-header { padding: 0 14px; height: 50px; }
    .gov-title h1 { font-size: 12.5px; }
    .ext-pills { gap: 4px; }
    .ext-pill { padding: 5px 10px; font-size: 11px; }
}
