/* Background whole login page */
body#page-login-index {
    background-color: #E4EEF7 !important;
}
body#page-login-index,
body#page-login-index * {
    font-family: 'Poppins', sans-serif !important;
}
/* Left image panel */
.zepter-left-image {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.4s ease-in-out;
}


.zepter-title {
    font-size: 30px;
    font-weight: 700;
    color: #002B60;
    margin-bottom: 10px;
}

.zepter-subtitle {
    font-size: 15px;
    color: #5f6a7a;
    margin-bottom: 25px;
}

/* Cards layout */
.zepter-role-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Each card */
.zepter-role-card {
    flex: 1;
    padding: 25px 10px;
    background: #f2f6fb;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.25s ease;
}

.zepter-role-card:hover {
    border-color: #003B7A;
    transform: translateY(-4px);
}

.zepter-role-card.selected {
    background: #dceaff;
    border-color: #003B7A;
    box-shadow: 0 0 10px rgba(0,59,122,0.25);
}

.zepter-role-icon {
    font-size: 42px;
    color: #003B7A;
    margin-bottom: 8px;
}

.zepter-role-label {
    font-size: 18px;
    font-weight: 600;
    color: #002B60;
}

/* Continue button */
.zepter-continue-btn {
    margin-top: 25px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 17px;
    border: none;
    cursor: not-allowed;
    background: #b0c4d9;
    color: white;
    transition: 0.25s;
}

.zepter-continue-btn.enabled {
    background: #003B7A;
    cursor: pointer;
}

.zepter-continue-btn.enabled:hover {
    background: #002B60;
}

/* Login box hidden initially */
.rui-login-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(25px);
    transition: 0.4s ease-in-out;
}

.rui-login-container.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#guestlogin > button{
    display: none !important;
}
.pagelayout-login #page{
    padding-left: 0px !important;
}
body#page-login-index {
    overflow: hidden !important;
}
#page-content > div:nth-child(2) > div > div > div > div.rui-login-layout.rui-login-layout-simple.rui-login-layout--1 > div.rui-login-wrapper.rui-login-wrapper--margin{
    display: none;
}
/* INFO BUTTON */
.zepter-info-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #003B7A;
    background: #dceaff;
    border: 2px solid #003B7A;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
}

.zepter-info-btn:hover {
    background: #003B7A;
    color: #fff;
}


/* CLOSE BUTTON */
.zepter-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #003B7A;
    transition: 0.2s;
}

.zepter-modal-close:hover {
    color: #001f40;
}

.zepter-modal-content h2 {
    color: #003B7A;
    margin-bottom: 10px;
}

.zepter-modal-content ul {
    text-align: left;
    margin: 10px 0 20px 0;
    padding-left: 20px;
}

.zepter-modal-content p {
    margin-bottom: 12px;
    line-height: 1.5;
}
/* Modern small info icon (top-right) */
.zepter-info-btn {
    position: absolute;
    top: 8px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #003B7A;
    color: #003B7A;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.zepter-info-btn:hover {
    background: #003B7A;
    color: #ffffff;
    transform: scale(1.1);
}


/* OVERLAY */
.zepter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 200;
}

.zepter-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* MODAL */
.zepter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -40%) scale(0.85);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0s linear 0.35s;

    z-index: 201;
    padding: 30px;
}

.zepter-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0s;
}
/* =========================================
   FULL PAGE BACKGROUND (ONE IMAGE)
========================================= */
body#page-login-index {
    margin: 0 !important;
    padding: 0 !important;
    background: url('/local/zepter_loginselector/pix/login_background.png') no-repeat center center fixed !important;
    background-size: cover !important;
    overflow: hidden !important;
    font-family: 'Inter', sans-serif;
}

/* Hide Moodle built-in login until role selected */
.rui-login-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.35s ease;
}
.rui-login-container.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================
   ROLE SELECTOR (WHITE BOX)
========================================= */
.zepter-role-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 670px;
    background: #D4E9F9;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeIn 0.5s ease;
        overflow: hidden; 

}
/* TOP WHITE PART */
.zepter-top-white {
  background: #ffffff;
    padding: 0;            
    padding: 10px 40px;    
    margin: 0;            
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -40px;
     margin-left: -50px;     
    margin-right: -50px;  
}

/* Big Welcome text */
.zepter-welcome {
    font-size: 60px;
    line-height: 1;
    font-weight: 800;
    color: #052C60;
    margin: 0 0 25px 0;
}

/* Titles */
.zepter-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F3872;
    margin-bottom: 4px;
}
.zepter-subtitle {
    font-size: 15px;
    color: #6D7A99;
    margin-bottom: 28px;
    margin-top: 20px;
}

/* =========================================
   INFO BUTTON (TOP RIGHT)
========================================= */
.zepter-info-btn {
    position: absolute;
    top: 8px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #003B7A;
    background: #ffffff;
    color: #003B7A;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}
.zepter-info-btn:hover {
    background: #003B7A;
    color: #ffffff;
    transform: scale(1.1);
}

/* =========================================
   ROLE CARDS
========================================= */
.zepter-role-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.zepter-role-card {
    flex: 1;
    background: #F7FAFF;
    padding: 20px;
    border-radius: 14px;
    border: 2px solid #D6E6FF;
    cursor: pointer;
    transition: 0.25s ease;
    text-align: center;
}
.zepter-role-card:hover {
    background: #E9F2FF;
    border-color: #4A7DFF;
    transform: translateY(-4px);
}
.zepter-role-card.selected {
    background: #DCEAFF;
    border-color: #003B7A;
    box-shadow: 0 4px 14px rgba(0,59,122,0.20);
}

/* SVG Icons */
.zepter-role-svg {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}
.zepter-role-label {
    font-size: 17px;
    font-weight: 600;
    color: #003B7A;
}

/* =========================================
   MODAL + OVERLAY
========================================= */
.zepter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 200;
}
.zepter-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.zepter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    transform: translate(-50%, -40%) scale(0.85);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
    z-index: 201;
}
.zepter-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.zepter-modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #003B7A;
    transition: 0.25s ease;
}
.zepter-modal-close:hover {
    color: #001f40;
}

.zepter-modal-content p,
.zepter-modal-content ul {
    margin-bottom: 12px;
    color: #22324D;
}
.zepter-top-wrapper {
    position: absolute;
    top: 5%;
    left: 42%;
    transform: translateX(-50%);
    text-align: left;
}

.zepter-logo {
    width: 180px;
}

.zepter-welcome {
    font-size: 72px;
    font-weight: 900;
    color: #052C60;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.zepter-inner-box {
    background: #D8E8FF;
    padding: 25px;
    border-radius: 18px;
    margin-top: 20px;
}
.zepter-role-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.zepter-role-card {
    flex: 1;
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: 0.25s ease;
}

.zepter-role-card:hover {
    border-color: #003B7A;
    box-shadow: 0 6px 20px rgba(0,59,122,0.25);
}

.zepter-role-svg {
    width: 42px;
}
.zepter-role-label {
    font-size: 17px;
    font-weight: 600;
    color: #003B7A;
}
body#page-login-index.login-phase {
    background: #ECF6FF !important;
}
/* ============================================
   MOBILE RESPONSIVE FIXES (max-width: 768px)
============================================ */
@media (max-width: 768px) {

    /* Background fix for mobile */
    body#page-login-index {
        background-size: cover !important;
        background-position: top center !important;
    }

    /* Position of the top logo + welcome text */
    .zepter-top-wrapper {
        top: 10% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        width: 90% !important;
        left: 50%;
    }

    .zepter-welcome {
        font-size: 38px !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .zepter-logo {
        width: 140px !important;
        margin-bottom: 5px;
    }

    /* White role selector box */
    .zepter-role-selector {
        width: 90% !important;
        padding: 25px 20px !important;
        border-radius: 16px !important;
        top: 30% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* White top bar */
    .zepter-top-white {
        padding: 12px 20px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
    }

    /* Subtitles */
    .zepter-title {
        font-size: 18px !important;
            margin-top: 4px;
    padding-top: 10px;
    }
    .zepter-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    /* Cards → one under another */
    .zepter-role-cards {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .zepter-role-card {
        width: 100% !important;
        padding: 16px !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .zepter-role-svg {
        width: 34px !important;
        height: 34px !important;
    }

    .zepter-role-label {
        font-size: 16px !important;
        text-align: left !important;
    }

    /* Info button smaller */
    .zepter-info-btn {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
    body#page-login-index {
        overflow: auto !important;
    }
    .zepter-left-image{
        display: none;
    }
    .rui-login-layout-simple .rui-login-box{
        margin-left: 10px;
    }
    html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
.login-container{
    min-height: unset !important;
}

}
