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

html {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    overscroll-behavior: none;
    touch-action: manipulation;
}

.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: manipulation;
}

#main-container {
    z-index: 10;
}

#main-container.hidden {
    display: none;
}

#main-container.active {
    display: flex;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, #1a4d7a 0%, #2d5d8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
    touch-action: manipulation;
    transition: opacity 0.5s ease-out 2.5s, pointer-events 0s linear 3s;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
}

/* Logo Image Styling */
.mixx-logo-img {
    height: 120px;
    width: auto;
    margin-bottom: 30px;
    object-fit: contain;
}

.mixx-logo-img-blue {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.splash-logo {
    font-size: 72px;
    font-weight: 900;
    color: #ffc107;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
}

.by-tips {
    font-size: 24px;
    font-weight: 600;
    color: #ffc107;
    display: block;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Animated Loader */
.loader {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.loader .dot {
    width: 14px;
    height: 14px;
    background-color: #ffc107;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== VERIFICATION LOADER ===== */
.verification-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #1a4d7a 0%, #2d5d8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
    touch-action: manipulation;
}

.verification-loader.hidden {
    display: none;
}

.verification-loader.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 64px;
    font-weight: 900;
    color: #ffc107;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
}

.loader-by-tips {
    font-size: 24px;
    font-weight: 600;
    color: #ffc107;
    display: block;
    margin-top: 8px;
    letter-spacing: 1px;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.loader-dot {
    width: 14px;
    height: 14px;
    background-color: #ffc107;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0s;
}

.loader-text {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== ERROR SCREEN ===== */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
    touch-action: manipulation;
}

.error-screen.hidden {
    display: none;
}

.error-screen.active {
    display: flex;
}

.error-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.error-message {
    font-size: 16px;
    color: #333;
    margin: 0 0 24px 0;
    line-height: 1.6;
    font-weight: 500;
}

.error-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a4d7a 0%, #2d5d8f 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.error-button:hover {
    opacity: 0.9;
}

/* ===== OTP SCREEN ===== */
.otp-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    touch-action: manipulation;
    z-index: 10;
}

.otp-screen.hidden {
    display: none;
}

.otp-screen.active {
    display: flex;
}

.otp-wrapper {
    width: 100%;
    max-width: 500px;
    max-width: min(500px, 100vw);
    background: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
    overflow: hidden;
}

.otp-logo {
    text-align: center;
    margin-bottom: 25px;
}

.otp-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.otp-logo h1 {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
}

.logo-by {
    font-size: 16px;
    font-weight: 600;
    color: #ffc107;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.otp-logo h1 {
    font-size: 42px;
    font-weight: 900;
    color: #ffc107;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
}

.logo-by {
    font-size: 16px;
    font-weight: 600;
    color: #ffc107;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.otp-header {
    margin-bottom: 30px;
}

.otp-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.highlight-text {
    color: #4a90e2;
}

.otp-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 8px 0 12px 0;
}

.change-number-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.change-number-link:hover {
    opacity: 0.8;
}

.otp-error-message {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 4px;
    background: #fadbd8;
}

.otp-error-message.hidden {
    display: none;
}

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.otp-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
    background: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

.otp-input:focus {
    border-color: #4a90e2;
}

.otp-input::placeholder {
    color: #999;
    letter-spacing: 1px;
}

.otp-button {
    width: 100%;
    padding: 14px;
    background: #e8e8e8;
    color: #999;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.otp-button:not(:disabled) {
    background: linear-gradient(135deg, #1a4d7a 0%, #2d5d8f 100%);
    color: white;
    cursor: pointer;
}

.otp-button:hover:not(:disabled) {
    opacity: 0.9;
}

.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.timer-display {
    width: 90px;
    height: 90px;
    border: 3px solid #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #4a90e2;
    background: #f0f8ff;
}

.resend-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.resend-link:hover {
    opacity: 0.8;
}

.otp-footer {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
}

.footer-subtext {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.globe-icon {
    font-size: 20px;
}

.language-text {
    color: #ffffff;
    font-weight: 500;
}

/* ===== BLUE SECTION ===== */
.blue-section {
    flex: 0 0 65%;
    background: linear-gradient(135deg, #1a4d7a 0%, #2d5d8f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    padding-top: 60px;
    min-height: 0;
    overflow: hidden;
    max-width: 100%;
    touch-action: manipulation;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.welcome-text {
    text-align: center;
}

.highlight {
    font-size: 24px;
    font-weight: 700;
    color: #ffc107;
    margin: 0;
    line-height: 1.3;
}

.highlight-sub {
    font-size: 18px;
    font-weight: 600;
    color: #ffc107;
    margin: 8px 0 0 0;
}

/* ===== WHITE SECTION ===== */
.white-section {
    flex: 0 0 35%;
    min-height: 280px;
    background: #ffffff;
    padding: 12px 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100%;
    touch-action: manipulation;
}

.description {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 16px 0;
    margin: 0;
}

/* ===== LOGIN FORM ===== */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 8px 0 0 0;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.form-group input {
    flex: 1;
    padding: 14px 16px 14px 45px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    background-color: #fff;
}

.flag-icon,
.lock-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    padding: 14px 16px;
    background: #e8e8e8;
    color: #999;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin: 8px 0 0 0;
}

.submit-btn:hover:not(:disabled) {
    background: #d9d9d9;
}

.submit-btn:active:not(:disabled) {
    background: #e8e8e8;
}

.submit-btn:not(:disabled) {
    background: linear-gradient(135deg, #1a4d7a 0%, #2d5d8f 100%);
    color: white;
    cursor: pointer;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== RESPONSIVE – reduce blue, more space for form on mobile ===== */
@media (max-width: 600px) {
    .blue-section {
        flex: 0 0 65%;
        padding: 20px 15px 16px;
        padding-top: 50px;
    }

    .white-section {
        flex: 0 0 35%;
        min-height: 260px;
        padding: 10px 16px 20px;
    }

    .mixx-logo-img-blue {
        height: 44px;
        margin-bottom: 12px;
    }

    .profile-image-container {
        margin-bottom: 12px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .highlight {
        font-size: 16px;
    }

    .highlight-sub {
        font-size: 13px;
        margin-top: 4px;
    }

    .description {
        font-size: 11px;
        padding: 6px 0 0;
    }

    .form-group input {
        font-size: 16px;
        padding: 12px 12px 12px 40px;
    }

    .submit-btn {
        padding: 12px 16px;
        font-size: 13px;
        margin-top: 12px;
    }

    .otp-input {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .blue-section {
        flex: 0 0 65%;
        padding: 16px 12px 12px;
        padding-top: 46px;
    }

    .white-section {
        flex: 0 0 35%;
        min-height: 240px;
        padding: 8px 12px 16px;
    }

    .mixx-logo-img-blue {
        height: 38px;
        margin-bottom: 8px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .highlight {
        font-size: 14px;
    }

    .highlight-sub {
        font-size: 12px;
    }

    .form-group input {
        font-size: 16px;
        padding: 10px 10px 10px 32px;
    }

    .flag-icon,
    .lock-icon {
        font-size: 16px;
        left: 8px;
    }

    .submit-btn {
        padding: 10px 12px;
        font-size: 12px;
        margin-top: 10px;
    }

    .otp-input {
        font-size: 16px;
    }
}
