        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
  
        html, body {
            height: 100%;
            width: 100%;
        }
  
        body {
            background: url('{{ asset("assets/loginBackgroundPhoto.jpg") }}') no-repeat center center fixed;
            background-size: cover;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow-x: hidden;
            position: relative;
        }
 
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.1);
            z-index: 0;
        }
 
        .container {
            display: grid;
            grid-template-columns: 1fr 450px;
            grid-template-areas:
                "brand login"
                "cards login";
            max-width: 1200px;
            width: 95%;
            gap: 16px 40px;
            align-items: start;
            align-content: center;
            padding: 20px;
            z-index: 1;
        }
 
        /* Left Section */
        .info-section {
            grid-area: brand;
            text-align: center;
        }
 
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 5px;
        }
 
        .logo-box {
            background-color: #fbbf24;
            color: white;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: 700;
            border-radius: 12px;
        }
 
        .logo-text {
            font-size: 48px;
            font-weight: 700;
            color: #1e293b;
        }
 
        .system-title {
            font-size: 24px;
            color: #334155;
            margin-bottom: 10px;
            font-weight: 400;
        }
 
        .tagline {
            font-size: 16px;
            color: #64748b;
            margin-bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
 
        .tagline span.blue { color: #3b82f6; }
        .tagline span.dot { color: #1e293b; font-size: 20px; }
 
        .cards-container {
            grid-area: cards;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 12px;
            justify-content: flex-start;
            align-items: stretch;
            width: 100%;
        }
 
        .info-card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            width: auto;
            flex: 1 1 0;
            min-width: 0;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0,0,0,0.01);
            text-align: center;
            display: flex;
            flex-direction: column;
        }
 
        .card-header {
            padding: 12px 10px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
 
        .card-header.admin { background-color: #1e293b; }
        .card-header.staff { background-color: #b48a2d; }
        .card-header.guidance { background-color: #4a90e2; }
        .card-header.academic { background-color: #0f766e; }
 
        .card-body {
            padding: 15px;
            font-size: 12px;
            color: #475569;
            line-height: 1.5;
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
 
        /* Right Section (Login Card) */
        .login-section {
            grid-area: login;
            width: 100%;
            align-self: center;
        }
 
        .login-card {
            background: rgba(255, 255, 255, 0.9);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.1);
            text-align: center;
        }
 
        .welcome-text {
            font-size: 28px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
 
        .welcome-text .logo-box-small {
            background-color: #fbbf24;
            color: white;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 700;
            border-radius: 8px;
        }
 
        .select-role-text {
            color: #64748b;
            font-size: 14px;
            margin-bottom: 30px;
        }
 
        .role-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 30px;
        }
 
        .role-btn {
            width: 100%;
            min-width: 0;
            min-height: 42px;
            padding: 10px 8px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            pointer-events: auto;
            position: relative;
            z-index: 2;
        }
 
        .role-btn.admin {
            background-color: white;
            color: #1e293b;
            border: 2px solid #1e293b;
        }
        
        .role-btn.admin.selected {
            background-color: #1e293b;
            color: white;
            border-color: #1e293b;
            box-shadow: 0 0 15px rgba(30, 41, 59, 0.3);
        }
   
        .role-btn.staff {
            background-color: white;
            color: #b48a2d;
            border: 2px solid #fbbf24;
        }
        
        .role-btn.staff.selected {
            background-color: #fbbf24;
            color: #1e293b;
            border-color: #fbbf24;
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
        }

        .role-btn.guidance {
            background-color: white;
            color: #4a90e2;
            border: 2px solid #4a90e2;
        }
        
        .role-btn.guidance.selected {
            background-color: #4a90e2;
            color: white;
            border-color: #4a90e2;
            box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
        }

        .role-btn.academic {
            background-color: white;
            color: #0f766e;
            border: 2px solid #0f766e;
        }

        .role-btn.academic.selected {
            background-color: #0f766e;
            color: white;
            border-color: #0f766e;
            box-shadow: 0 0 15px rgba(15, 118, 110, 0.35);
        }
 
        .form-group {
            text-align: left;
            margin-bottom: 20px;
        }
 
        .form-group label {
            display: block;
            font-size: 14px;
            color: #1e293b;
            margin-bottom: 8px;
            font-weight: 500;
        }
 
        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
 
        .input-icon-prefix {
            position: absolute;
            left: 0;
            background-color: #1e293b;
            color: white;
            height: 100%;
            width: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-top-left-radius: 6px;
            border-bottom-left-radius: 6px;
        }
 
        .input-wrapper input {
            width: 100%;
            padding: 10px 10px 10px 50px;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
        }
 
        .input-wrapper input:focus {
            border-color: #3b82f6;
        }
 
        .password-toggle {
            position: absolute;
            right: 10px;
            color: #64748b;
            cursor: pointer;
            font-size: 14px;
        }
 
        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #64748b;
            margin-bottom: 15px;
        }

        .remember-me input {
            cursor: pointer;
        }

        .privacy-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 12px;
            color: #64748b;
            margin-bottom: 20px;
            text-align: left;
            line-height: 1.5;
        }

        .privacy-checkbox input {
            cursor: pointer;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .privacy-checkbox label {
            cursor: pointer;
            font-size: 12px;
            color: #64748b;
        }

        .privacy-checkbox a {
            color: #3b82f6;
            text-decoration: underline;
            font-weight: 500;
        }

        .privacy-checkbox a:hover {
            color: #1d4ed8;
        }
 
        .login-btn {
            width: 100%;
            padding: 12px;
            background-color: #fbbf24;
            border: none;
            border-radius: 8px;
            color: #1e293b;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: background 0.3s;
            margin-bottom: 30px;
        }
 
        .login-btn:hover {
            background-color: #f59e0b;
        }
 
        .divider {
            height: 1px;
            background-color: #e2e8f0;
            margin-bottom: 20px;
        }
 
        .version-text {
            font-size: 12px;
            color: #94a3b8;
        }
 
        /* Tablet: keep the computer split. Phone: stack the page. */
        @media (min-width: 768px) and (max-width: 992px) {
            body {
                align-items: flex-start;
                overflow-y: auto;
                height: auto;
                min-height: 100vh;
                min-height: 100dvh;
            }
            .container {
                grid-template-columns: 1fr 1fr;
                align-items: start;
                padding-top: 24px;
                padding-bottom: 24px;
                gap: 16px;
            }
            .info-section {
                min-width: 0;
            }
            .login-section {
                width: auto;
                max-width: none;
                min-width: 0;
            }
            .logo-text { font-size: 36px; }
            .system-title { font-size: 18px; line-height: 1.3; }
            .tagline { flex-wrap: wrap; font-size: 13px; justify-content: center; }
            .login-card {
                padding: 16px 12px;
                min-width: 0;
            }
            .input-wrapper,
            .input-wrapper input,
            .login-btn {
                width: 100%;
                max-width: 100%;
                min-width: 0;
                box-sizing: border-box;
            }
            .input-wrapper input {
                min-height: 40px;
            }
            .role-buttons {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 6px;
            }
            .role-btn {
                width: 100%;
                min-width: 0;
                min-height: 40px;
                padding: 8px 6px;
                font-size: 11px;
                white-space: normal;
                line-height: 1.15;
                overflow: visible;
            }
            .login-btn {
                min-height: 40px;
            }
            .welcome-text {
                flex-wrap: nowrap;
                justify-content: center;
                font-size: 18px;
                gap: 6px;
            }
            .welcome-text .logo-box-small {
                width: 28px;
                height: 28px;
                font-size: 16px;
                flex-shrink: 0;
            }
            .cards-container {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: flex-start;
                align-items: stretch;
                width: 100%;
            }
            .info-card {
                width: auto;
                flex: 1 1 0;
                max-width: none;
                min-width: 0;
            }
        }

        @media (max-width: 767px) {
            body {
                align-items: flex-start;
                overflow-y: auto !important;
                height: auto !important;
                min-height: 100vh;
                min-height: 100dvh;
            }
            .container {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "brand"
                    "login"
                    "cards";
                justify-items: center;
                padding-top: 30px;
                padding-bottom: 30px;
                gap: 20px;
            }
            .info-section { width: 100%; }
            .login-section {
                width: 100%;
                max-width: 450px;
            }
            .cards-container { width: 100%; }
            .login-card { padding: 30px 20px; }
            .cards-container { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
            .info-card { width: calc(50% - 8px); max-width: none; flex: 1 1 calc(50% - 8px); }
            .role-buttons { display: grid; grid-template-columns: 1fr 1fr; }
            .role-btn { width: 100%; flex: none; min-width: 0; font-size: 12px; white-space: normal; }
        }

        @media (max-width: 600px) {
            .logo-text { font-size: 36px; }
            .logo-box { width: 40px; height: 40px; font-size: 24px; }
            .system-title { font-size: 18px; }
            .tagline { font-size: 14px; flex-wrap: wrap; margin-bottom: 0; }
            .cards-container { flex-wrap: wrap; }
            .info-card { width: calc(50% - 8px); max-width: none; flex: 1 1 calc(50% - 8px); }
            .role-buttons { display: grid; grid-template-columns: 1fr; }
            .role-btn { width: 100%; flex: none; font-size: 13px; white-space: nowrap; overflow: visible; padding: 8px 10px; }
            .welcome-text { font-size: 22px; white-space: normal; }
            .select-role-text { font-size: 13px; }
            .form-group { margin-bottom: 15px; }
            .input-wrapper input { font-size: 13px; padding: 8px 8px 8px 36px; }
            .input-icon-prefix { width: 32px; }
            .login-btn { padding: 10px; font-size: 14px; }
            .remember-me { font-size: 12px; margin-bottom: 20px; }
            .version-text { font-size: 11px; }
        }

        @media (max-width: 400px) {
            .container { width: 100%; padding: 15px; }
            .logo-text { font-size: 28px; }
            .system-title { font-size: 16px; }
            .login-card { padding: 20px 15px; border-radius: 15px; }
            .welcome-text { font-size: 18px; }
        }

        .login-doc-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 28, 46, 0.55);
            backdrop-filter: blur(2px);
        }

        .login-doc-modal.show {
            display: flex;
        }

        .login-doc-modal__dialog {
            width: min(720px, 100%);
            max-height: min(88vh, 640px);
            background: #fff;
            border-radius: 0;
            box-shadow: 0 18px 50px rgba(15, 28, 46, 0.28);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: loginDocModalIn 0.2s ease-out;
        }

        @keyframes loginDocModalIn {
            from { opacity: 0; transform: translateY(12px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .login-doc-modal__header,
        .login-doc-modal__footer {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            flex-shrink: 0;
        }

        .login-doc-modal__header {
            padding: 22px 24px 14px;
            border-bottom: 1px solid #e8edf3;
        }

        .login-doc-modal__heading {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .login-doc-modal__icon {
            width: 40px;
            height: 40px;
            border-radius: 0;
            background: #1b3352;
            color: #fbbf24;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .login-doc-modal__header h3 {
            margin: 0;
            color: #1b3352;
            font-size: 17px;
            font-weight: 700;
            line-height: 1.3;
        }

        .login-doc-modal__header p {
            margin: 4px 0 0;
            color: #64748b;
            font-size: 12px;
            line-height: 1.45;
        }

        .login-doc-modal__close {
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 0;
            background: #f0f3f7;
            color: #1b3352;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .login-doc-modal__close:hover {
            background: #e2e8f0;
        }

        .login-doc-modal__body {
            padding: 18px 24px;
            overflow-y: auto;
            color: #334155;
            font-size: 13px;
            line-height: 1.65;
            flex: 1;
        }

        .login-doc-modal__badge {
            display: inline-block;
            margin-bottom: 12px;
            padding: 4px 10px;
            border-radius: 0;
            background: #eef4ff;
            color: #1b3352;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .login-doc-modal__body p {
            margin-bottom: 14px;
        }

        .login-doc-modal__link-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 18px;
            padding: 12px 14px;
            border: 1px solid #e8edf3;
            border-radius: 0;
            background: #f8fafc;
            color: #1b3352;
            text-decoration: none;
        }

        .login-doc-modal__link-card:hover {
            border-color: #c5d4e8;
            background: #f1f5f9;
        }

        .login-doc-modal__link-card strong,
        .login-doc-modal__link-card small {
            display: block;
        }

        .login-doc-modal__link-card small {
            margin-top: 3px;
            color: #64748b;
            font-size: 12px;
            font-weight: 400;
        }

        .login-doc-modal__section-title {
            margin-bottom: 8px;
            color: #1b3352;
            font-size: 13px;
            font-weight: 700;
        }

        .login-doc-modal__rules {
            margin: 0;
            padding: 0;
            list-style: none;
            counter-reset: privacy-rule;
        }

        .login-doc-modal__rules li {
            position: relative;
            margin-bottom: 8px;
            padding: 10px 12px 10px 42px;
            border-radius: 0;
            background: #f8fafc;
            counter-increment: privacy-rule;
        }

        .login-doc-modal__rules li::before {
            content: counter(privacy-rule);
            position: absolute;
            left: 12px;
            top: 10px;
            width: 22px;
            height: 22px;
            border-radius: 0;
            background: #1b3352;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-doc-modal__footer {
            justify-content: flex-end;
            padding: 14px 24px 20px;
            border-top: 1px solid #e8edf3;
            background: #fafbfc;
        }

        .login-doc-modal__btn {
            border: none;
            border-radius: 0;
            background: #1b3352;
            color: #fff;
            font-weight: 600;
            font-size: 13px;
            padding: 10px 18px;
            cursor: pointer;
        }

        .login-doc-modal__btn:hover {
            background: #15283f;
        }