:root {
    --bg-color: #f5f5f5;
    --active-bg: #ffffff;
    --text-color: #4a76a8;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    padding: 50px 20px; /* Added side padding for mobile */
}

.tab-container {
    display: flex;
    background-color: var(--bg-color);
    padding: 4px; /* This is the "inner gap" */
    border-radius: 12px;
    position: relative;
    width: 100%; /* Allows it to shrink on mobile */
    max-width: 400px; /* Limits size on desktop */
    border: 1px solid #e0e0e0;
    box-sizing: border-box; /* Crucial for padding math */
}

.tab {
    flex: 1; /* Each tab takes exactly 50% */
    padding: 12px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    z-index: 2;
    text-align: center;
    transition: color var(--transition-speed);
}

.glider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px); /* 100% minus top/bottom padding */
    
    /* FIX: Width is exactly half minus the left padding */
    width: calc(50% - 4px); 
    
    background-color: var(--active-bg);
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease-in-out;
}

/* FIX: Use 100% to move exactly one 'glider-width' to the right */
#tab-1:checked ~ .glider { 
    transform: translateX(0); 
}

#tab-2:checked ~ .glider { 
    transform: translateX(100%); 
}

/* Hide Radio Buttons */
input[type="radio"] { 
    display: none; 
}
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.parent-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.create-container{
        border: 1px solid #d6d6d6;
    box-shadow: 0.5px 0.5px 8px #ececec;
    border-radius: 10px;
    width: 410px;
    padding: 25px;
    margin-top: 10px;
}

#create-container{
    display: none;
}

.container {
    border: 1px solid #d6d6d6;
    box-shadow: 0.5px 0.5px 8px #ececec;
    border-radius: 10px;
    width: 410px;
    padding: 25px;
    margin-top: 10px;
    display: hidden;
}

img{
    height: 80px;
    width: 120px;
}

p{
    font-size: 18px;
    font-weight: 450;
    margin-bottom: 20px;
    
}

.header{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.para {
    font-size: 15px;
    color: #737373;
}

.NIC-box {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 25px;
    width: 360px;
    font-weight: 400;
}

.Password-box {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 15px;
    margin-bottom: 10px;
    width: 360px;


}

label {
    font-weight: 450;
    font-size: 15px;
}

input {
    border-radius: 4px;
    border: 1px solid #737373;
    margin: 4px;
    margin-left: 0px;
    height: 30px;
    box-shadow: 0.5px 0.5px 6px #ececec;
    padding: 5px;
}

button {
    width: 360px;
    background-color: #1b46a1;
    color: #FAFAFA;
    font-size: 17px;
    font-weight: 600;
    border: 1px solid #1b46a1;
    border-radius: 5px;
    box-shadow: 0.5px 0.5px 6px #d2dfff;
    height: 33px;
    margin-top: 11px;
    margin-bottom: 13px;
    cursor: pointer;
}

button:hover {
    background-color: #0A2B70;
    border: 1px solid #0A2B70;
}













/* Media Query for Mobile Devices (425px and below) */
@media screen and (max-width: 425px) {
    
    body {
        padding-top: 25px; /* Reduce top padding for smaller screens */
    }

    /* Adjust the main card containers */
    .container, 
    .create-container {
        width: 95%; /* Occupy most of the screen width */
        padding: 15px; /* Reduce internal spacing */
        margin: 10px auto;
    }

    /* Make input boxes and buttons fill their parent container */
    .NIC-box, 
    .Password-box, 
    button {
        width: 100% !important; /* Forces elements to fit the 95% container */
    }

    /* Adjust the Tab Switcher */
@media (max-width: 425px) {
    .tab-container {
        width: 95%; 
        display: flex;
        padding: 4px; /* Ensure this matches your desktop padding */
        box-sizing: border-box; /* This keeps the container from growing too large */
    }

    .tab {
        flex: 1; 
        padding: 10px 5px;
        min-width: 0; 
        font-size: 14px; 
    }

    .glider {
        /* FIX: 50% of the container minus the padding effect */
        width: calc(50% - 4px); 
        
        /* Ensure the starting position accounts for the left padding */
        left: 4px; 
        top: 4px;
        height: calc(100% - 8px);
    }

    /* FIX: Translate by 100% of its OWN width to move exactly one tab over */
    #tab-2:checked ~ .glider { 
        transform: translateX(100%); 
    }
}
    /* Adjusting the logo size for mobile */
    img {
        margin-top : 20px;
        height: 60px;
        width: auto;
    }
    
    .para {
        font-size: 13px; /* Smaller text for better readability */
    }
}