/*
 * DECAS Auth / Login / Registration Styles
 * Styles for authentication pages, application forms, and recruitment portal
 */

/* ============================================
   LOGIN IMAGE
   ============================================ */
.login-img {
    width: 30px;
}

/* ============================================
   ACTIVE LINK STYLE
   ============================================ */
a.active {
    border: 1px solid #E9EDF4 !important;
    color: #000 !important;
    background-color: transparent !important;
    border-radius: 10px !important;
    font-size: 14px;
}

/* ============================================
   AUTH GRADIENT BUTTON
   ============================================ */
.btn-gradient {
    background: #F4B400;
    color: #0F2D5C;
    border: none !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.btn-gradient:hover {
    background: #D89C00;
    color: #0F2D5C;
}

/* ============================================
   STEP PROGRESS INDICATOR
   ============================================ */
.step-progress {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 2rem 0;
    counter-reset: step;
}
.step-progress li {
    flex: 1;
    text-align: center;
    position: relative;
    counter-increment: step;
}
.step-progress li::before {
    content: counter(step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.step-progress li.active::before {
    background: linear-gradient(90deg, #34a853, #6a0dad);
    color: white;
}
.step-progress li.completed::before {
    background: #28a745;
    color: white;
    content: '\2713';
}

/* ============================================
   STEP DOTS (Mobile)
   ============================================ */
.step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}
.step-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e9ecef;
    transition: all 0.3s ease;
}
.step-dots .dot.active {
    background: #34a853;
    transform: scale(1.2);
}

/* ============================================
   STEP CONTENT
   ============================================ */
.step-content {
    display: none;
}
.step-content.active {
    display: block;
}

/* ============================================
   PASSPORT PREVIEW
   ============================================ */
.passport-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}
.passport-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* ============================================
   DOCUMENT ROW
   ============================================ */
.doc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* ============================================
   TERMS BOX
   ============================================ */
.terms-box {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   REVIEW SECTION
   ============================================ */
.review-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.review-section h6 {
    color: #0F2D5C;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.review-section table td {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
}

/* ============================================
   SUCCESS / PAYMENT ICONS
   ============================================ */
.success-icon {
    color: #28a745;
    font-size: 3rem;
}
.payment-icon {
    color: #F4B400;
    font-size: 3rem;
}

/* ============================================
   APPLICATION STATUS
   ============================================ */
.status-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.school-header {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}
.school-header img {
    max-height: 60px;
    margin-bottom: 0.5rem;
}
.status-timeline {
    position: relative;
    padding-left: 2rem;
}
.status-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.status-timeline .timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
    box-shadow: none;
    border-left: none;
    border-radius: 0;
}
.status-timeline .timeline-item.active {
    color: #28a745;
}
.status-timeline .timeline-item.completed {
    opacity: 1;
}
.status-timeline .timeline-item.rejected {
    color: #dc3545;
}
.timeline-dot {
    position: absolute;
    left: -1.6rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    border: 2px solid white;
}
.timeline-item.active .timeline-dot,
.timeline-item.completed .timeline-dot {
    background: #28a745;
}
.timeline-item.rejected .timeline-dot {
    background: #dc3545;
}

/* ============================================
   RECRUITMENT PORTAL
   ============================================ */
.hero {
    margin-top: 55px;
    height: 200px;
    background-color: #0F2D5C !important;
    border: none !important;
}
.recruitment-wrapper .main-wrapper {
    background: #f0f0f0 !important;
}
.recruitment-wrapper .nav-tabs .nav-link {
    font-size: 16px;
}
.recruitment-wrapper .nav-tabs.nav-tabs-solid li a.active {
    background-color: #0F2D5C;
    border-color: #0F2D5C;
    color: #FFF;
    border-radius: 0;
    font-size: 16px;
}

/* ============================================
   STEP PROGRESS - VERTICAL CONNECTING LINES
   ============================================ */
.step-progress li::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 40px;
    width: 2px;
    height: calc(100% - 28px);
    background: rgba(255,255,255,0.2);
}
.step-progress li:last-child::after {
    display: none;
}
.step-progress li.completed::after {
    background: #10B981;
}

/* ============================================
   STEP DOTS - COMPLETED STATE
   ============================================ */
.step-dots .dot.completed {
    background: #10B981;
}

/* ============================================
   FORM LABEL REQUIRED ASTERISK
   ============================================ */
.form-label .text-danger {
    font-size: 12px;
}

/* ============================================
   DOCUMENT ROW FILE INPUT
   ============================================ */
.doc-row .form-control {
    flex: 1;
}

/* ============================================
   REVIEW SECTION EXTRAS
   ============================================ */
.review-section h6 a {
    font-size: 12px;
    font-weight: 400;
}
.review-section table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

/* ============================================
   LOGIN PAGE V2 - MODERN GLASS DESIGN
   ============================================ */

/* --- Full-viewport gradient background --- */
.login-page-v2 {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F2D5C 0%, #163D7A 50%, #2A5CAA 100%);
    overflow-x: hidden;
}

.login-v2-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* --- Glass-effect card --- */
.login-glass-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    color: #ffffff;
}

/* --- Logo --- */
.login-logo-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-logo {
    max-width: 160px;
    height: auto;
}

/* --- Headings --- */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.login-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* --- Form elements --- */
.login-glass-card .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
}
.login-glass-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.65rem 0.75rem 0.65rem 2.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-glass-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.login-glass-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #F4B400;
    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.25);
    color: #ffffff;
}

/* --- Input icons --- */
.login-glass-card .input-icon-addon {
    color: rgba(255, 255, 255, 0.5);
}
.login-glass-card .toggle-password {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

/* --- Checkbox & links --- */
.login-glass-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.login-glass-card .form-check-input:checked {
    background-color: #F4B400;
    border-color: #F4B400;
}
.login-glass-card .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}
.login-forgot-link {
    color: #F4B400 !important;
    font-size: 0.875rem;
    text-decoration: none;
}
.login-forgot-link:hover {
    color: #FFD54F !important;
    text-decoration: underline;
}

/* --- Submit button --- */
.login-submit-btn {
    background: #F4B400 !important;
    border: none !important;
    color: #0F2D5C !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 10px;
    transition: background 0.2s, transform 0.1s;
}
.login-submit-btn:hover {
    background: #D89C00 !important;
    color: #0F2D5C !important;
    transform: translateY(-1px);
}
.login-submit-btn:active {
    transform: translateY(0);
}

/* --- Footer --- */
.login-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.login-card-footer p,
.login-card-footer a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}
.login-card-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   NOTICE BANNER - LOGIN PAGE
   ============================================ */
.login-notice-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(15, 45, 92, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 3rem 0 1rem;
    overflow: hidden;
    max-height: 48px;
    display: flex;
    align-items: center;
}
.notice-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    padding: 0.65rem 0;
}
.notice-track.notice-scroll {
    animation: noticeScroll 20s linear infinite;
}
.notice-track.notice-scroll:hover {
    animation-play-state: paused;
}
@keyframes noticeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #ffffff;
    flex-shrink: 0;
}
.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.notice-title {
    font-weight: 600;
}
.notice-body {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Priority badge colors */
.notice-info .notice-badge {
    background: rgba(42, 92, 170, 0.8);
    color: #ffffff;
}
.notice-maintenance .notice-badge {
    background: rgba(244, 180, 0, 0.85);
    color: #0F2D5C;
}
.notice-urgent .notice-badge {
    background: rgba(220, 53, 69, 0.9);
    color: #ffffff;
}

/* Dismiss button */
.notice-dismiss {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.notice-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Push content down when banner visible */
.login-page-v2.has-notices .login-v2-wrapper {
    padding-top: calc(48px + 2rem);
}

/* ============================================
   RESPONSIVE - LOGIN V2
   ============================================ */
@media (max-width: 576px) {
    .login-glass-card {
        margin: 0 0.5rem;
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    .login-logo {
        max-width: 120px;
    }
    .login-title {
        font-size: 1.5rem;
    }
    .login-notice-banner {
        max-height: 60px;
    }
    .notice-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .login-v2-wrapper {
        padding: 1rem 0.5rem;
    }
}
