    <style>
    *s {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', sans-serif;
        background: linear-gradient(145deg, #f0f5fe 0%, #e9f0fa 100%);
        min-height: 100vh;
        color: #1e293b;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .dot-pattern {
        background: radial-gradient(#1e3c72 2px, transparent 2px);
        background-size: 25px 25px;
        opacity: 0.2;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: -1;
    }

    .login-container {
        width: 100%;
        max-width: 450px;
        padding: 20px;
        margin: 20px;
    }

    .back-home {
        margin-bottom: 20px;
        display: inline-block;
        color: #1e3c72;
        text-decoration: none;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.5);
        padding: 8px 20px;
        border-radius: 40px;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.7);
        transition: 0.2s;
    }

    .back-home i {
        margin-right: 6px;
    }

    .back-home:hover {
        background: white;
        transform: translateX(-3px);
    }

    .login-card {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(12px);
        border-radius: 50px;
        padding: 45px 40px;
        box-shadow: 0 30px 50px -20px rgba(0, 45, 75, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.7);
        width: 100%;
    }

    .login-header {
        text-align: center;
        margin-bottom: 35px;
    }

    .login-header .logo-icon {
        background: #1e3c72;
        color: white;
        width: 70px;
        height: 70px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        margin: 0 auto 15px;
        box-shadow: 0 10px 20px rgba(0, 35, 70, 0.2);
    }

    .login-header h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 2rem;
        background: linear-gradient(135deg, #0b2b4e, #2a5a8c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 5px;
    }

    .login-header p {
        color: #2c4e72;
        font-size: 1rem;
        font-weight: 500;
    }

    .login-header .role-badge {
        background: rgba(255, 180, 70, 0.2);
        color: #ffb347;
        padding: 5px 15px;
        border-radius: 40px;
        display: inline-block;
        margin-top: 10px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #1a3b5c;
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }

    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-wrapper i {
        position: absolute;
        left: 18px;
        color: #1e4c7a;
        font-size: 1.2rem;
        opacity: 0.8;
    }

    .input-wrapper input {
        width: 100%;
        padding: 16px 20px 16px 52px;
        border: 2px solid rgba(255, 255, 255, 0.9);
        border-radius: 60px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(4px);
        transition: 0.2s;
        font-family: 'Inter', sans-serif;
        outline: none;
        color: #0b2b4e;
        font-weight: 500;
    }

    .input-wrapper input:focus {
        border-color: #1e3c72;
        background: white;
        box-shadow: 0 8px 16px -8px #1e3c7240;
    }

    .input-wrapper input::placeholder {
        color: #6f8fae;
        font-weight: 400;
    }

    .field-hint {
        font-size: 0.85rem;
        margin-top: 5px;
        margin-left: 18px;
        color: #1e4c7a;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .login-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 25px 0 30px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .link-btn {
        background: transparent;
        border: none;
        color: #1e4c7a;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 40px;
        transition: 0.2s;
        text-decoration: none;
    }

    .link-btn i {
        font-size: 1rem;
    }

    .link-btn:hover {
        background: rgba(255, 255, 255, 0.7);
        color: #0b2b4e;
    }

    .login-submit {
        width: 100%;
        background: linear-gradient(105deg, #1e3c72, #143157);
        border: none;
        padding: 16px;
        border-radius: 60px;
        color: white;
        font-weight: 700;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: 0.25s;
        border: 1px solid #6387b1;
        box-shadow: 0 10px 20px -8px #0b2b4e;
        margin-bottom: 20px;
    }

    .login-submit:hover {
        background: linear-gradient(105deg, #143157, #0b2341);
        transform: translateY(-2px);
        box-shadow: 0 18px 25px -10px #0b2b4e;
    }

    .new-user-section {
        text-align: center;
        border-top: 2px dashed rgba(30, 60, 114, 0.15);
        padding-top: 25px;
        margin-top: 10px;
    }

    .new-user-section p {
        color: #1f4468;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .register-link {
        background: rgba(255, 255, 255, 0.8);
        border: 2px solid #b9d3f0;
        border-radius: 60px;
        padding: 12px 30px;
        font-weight: 600;
        color: #1e3c72;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: 0.2s;
    }

    .register-link:hover {
        background: white;
        border-color: #1e3c72;
    }

    .version-note {
        text-align: center;
        margin-top: 20px;
        font-size: 0.85rem;
        color: #1d4a79;
        background: rgba(255, 255, 255, 0.3);
        padding: 8px 20px;
        border-radius: 60px;
        backdrop-filter: blur(4px);
        display: inline-block;
        width: auto;
    }

    .student-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20 50 L50 20 L80 50 L50 80 Z" fill="%231e3c72"/><circle cx="50" cy="50" r="15" fill="%23ffb347"/></svg>') repeat;
        pointer-events: none;
        z-index: -1;
    }
.login-error{
    background:#ffe6e6;
    color:#b30000;
    padding:12px;
    border-radius:14px;
    margin-bottom:18px;
    text-align:center;
    font-weight:600;
}


/* ===============================
   FLOATING STUDENT PILL (FINAL)
================================ */

#studentFloating{
    position: fixed;
    bottom: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 18px;

    background: rgba(255,255,255,0.95);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 500;
    color: #1e3c72;

    border: 1px solid #dbe3ec;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    backdrop-filter: blur(6px);

    z-index: 99999999; /* overrides all layers */
    white-space: nowrap;
}

#studentFloating i{
    color:#1e3c72;
}

    </style>