@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Root Variable */
:root {
    --color-primary: #548dd4;
    --color-danger: #ff7782;
    --color-success: #41f1b6;
    --color-warning: #ffbb55;
    --color-white: #fff;
    --color-info-dark: #7d8da1;
    --color-info-light: #dce1eb;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-primary-variant: #3f71e8;
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;

    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;

    --card-padding: 1.8rem;
    --padding-1: 1.2rem;

    --box-shadow: 0 2rem 3rem var(--color-light)
}

html
{
font-size: 14px;

}

body
{
    width: 100vw;
    height: 100vh; /* Changed from 100vw for consistency */
    font-family: poppins, sans-serif;
    font-size: 0.88rem;
    background: var(--color-background);
    user-select: none;
    overflow-x: scroll; /* Ensure horizontal scrolling */
    overflow-y: scroll; /* Ensure vertical scrolling */
  
   
}

*
{
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: none;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

/* LOGIN FORM */


body 
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background: #D3D3D3;
    overflow-y: hidden;
    overflow-x: hidden;
   
}
.container 
{
    position: relative;
    width: 600px;  /* Reduced width further */
    height: 400px; /* Reduced height further */
    background: var(--color-background);
    border-radius: 30px;
   box-shadow: var(--box-shadow);
   overflow: hidden;
}

.form-box
{
   position: absolute;
   right: 0;
   width: 50%;
   height: 100%;
   background: var(--color-background); 
   display: flex;
   align-items: center;
   color: var(--color-primary);
   text-align: center;
   z-index: 1;
   padding: 20px;  /* Further reduced padding */
}

form
{
    width: 100%;


}

.container h1
{
   
    margin: -10px 0;
    font-size: 24px;  /* Further reduced font size */
}

.input-box
{
    position: relative;
    margin: 30px 0;
}

.input-box input
{
   width: 100%;
   background-color: #D3D3D3;
   border-radius: 8px;
   border: none;
   outline: none;
   padding: 8px 35px 8px 12px;  /* Further reduced padding */
   color: #202528;
   font-weight: 500;
   border: 2px solid var(--color-primary);
   font-size: 13px;  /* Further reduced font size */
}

.input-box input::placeholder 
{
    color: #888;
    font-weight: 400;
}
.input-box i
{
position: absolute;
right: 15px;  /* Reduced icon position */
top: 50%;
transform: translateY(-50%);
color: #888;
font-size: 16px;  /* Further reduced icon size */

}

.forgot-link 
{
    margin: -15px 0 15px;

}

.forgot-link a
{
    font-size: 15px;
    color: #333;
    text-decoration: none;
    
}

.btn
{
    width: 100%;
    background-color: var(--color-primary-variant);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    border: none;
    cursor: pointer;
    height: 36px;  /* Further reduced button height */
    color: white;
    font-weight: 600;
    font-size: 13px;  /* Further reduced font size */
   
}

.toggle-box
{
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-primary)
}

.toggle-box
{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px; /* Apply same rounded corners on both sides */
    overflow: hidden; /* Hide overflow on left */

}

.toggle-panel
{
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start; /* Align logo and text vertically */
    padding-top: 2rem; /* Add spacing at the top */

}

.toggle-panel img.logo-placeholder
{
    width: 200px; /* Set a default width for logo */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 1rem; /* Space below the logo */
}

.toggle-panel p
{
    
    margin-top: 10px;
    font-size: 3rem;
    text-align: center;
    margin: 0 1.5rem;  /* Reduced margin */
    font-size: 0.9rem;  /* Further reduced font size */
}

.input-box span
{
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 25px;
color: #888
}

/* Ensure "Hello, welcome" text remains properly aligned */
.toggle-panel h1 {
    font-size: 2rem;
    text-align: center;
    margin: 0;
}

/* Add contact admin text to form in portrait mode */
.contact-admin-text {
    display: none;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    text-align: center;
}

.contact-admin-text a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-admin-text a:hover {
    text-decoration: underline;
}

/* PORTRAIT MODE - Small screens only */
@media screen and (max-width: 650px) and (orientation: portrait) {
    /* Hide the toggle panel completely in portrait mode */
    .toggle-box {
        display: none;
    }

    body {
        align-items: center;
        padding: 0;
    }
    
    /* Make form take full container */
    .container {
        width: 90%;
        max-width: 340px;
        height: auto;
        min-height: unset;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-box {
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        bottom: auto;
        padding: 20px 20px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Style the form to use full height properly */
    .form-box form {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
    }
    
    .container h1 {
        font-size: 26px;
        margin: 0 0 10px 0;
        color: var(--color-primary);
    }
    
    .input-box {
        margin: 8px 0;
    }
    
    .input-box input {
        padding: 11px 45px 11px 15px;
        font-size: 15px;
        border-width: 1.5px;
        border-radius: 12px;
    }
    
    .input-box span {
        font-size: 24px;
        right: 15px;
        color: var(--color-primary);
    }
    
    .forgot-link {
        margin: 3px 0 8px;
        text-align: right;
    }
    
    .forgot-link a {
        font-size: 14px;
        color: var(--color-primary);
        font-weight: 500;
    }
    
    .btn {
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
        background-color: var(--color-primary);
        box-shadow: 0 4px 10px rgba(84, 141, 212, 0.3);
        margin-top: 4px;
    }
    
    /* Show contact admin text in portrait mode */
    .contact-admin-text {
        display: block;
        margin-top: 10px;
        font-size: 0.85rem;
    }
}

/* Extra small portrait devices */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .container {
        max-width: 300px;
        min-height: unset;
    }
    
    .form-box {
        padding: 16px 15px 12px;
    }
    
    .container h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .input-box {
        margin: 7px 0;
    }
    
    .input-box input {
        padding: 10px 40px 10px 12px;
        font-size: 14px;
    }
    
    .input-box span {
        font-size: 22px;
    }
    
    .forgot-link a {
        font-size: 13px;
    }
    
    .btn {
        height: 42px;
        font-size: 15px;
    }
    
    .contact-admin-text {
        margin-top: 8px;
        font-size: 0.8rem;
    }
}

/* Very small portrait devices */
@media screen and (max-width: 360px) and (orientation: portrait) {
    .container {
        max-width: 280px;
        min-height: unset;
    }
    
    .form-box {
        padding: 14px 12px 10px;
    }
    
    .container h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .input-box {
        margin: 6px 0;
    }
    
    .input-box input {
        padding: 9px 35px 9px 10px;
        font-size: 13px;
    }
    
    .input-box span {
        font-size: 20px;
    }
    
    .btn {
        height: 38px;
        font-size: 14px;
    }
    
    .contact-admin-text {
        margin-top: 8px;
        font-size: 0.75rem;
    }
}

/* LANDSCAPE MODE - Keep original styles for all landscape orientations */
@media screen and (max-width: 650px) and (orientation: landscape) {
    /* Keep the original styles from your existing media query */
    .container {
        height: calc(100vh - 40px);
    }
    
    .form-box {
        bottom: 0;
        width: 100%;
        height: 70%;
        position: absolute;
    }
    
    .toggle-box {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
    }
    
    .toggle-panel {
        width: 100%;
        height: 30%;
        position: absolute;
        display: flex;
    }
    
    .toggle-panel.toggle-left {
        top: 0;
    }
    
    .toggle-panel img.logo-placeholder {
        width: 12%;
    }
    
    .toggle-panel h1 {
        font-size: 1.5rem;
    }
    
    .toggle-panel p {
        font-size: 0.8rem;
    }
    
    /* Hide contact admin text in landscape */
    .contact-admin-text {
        display: none;
    }
}

/* For larger screens, keep everything as is */
@media screen and (min-width: 651px) {
    /* No changes - keep original desktop styles */
    .contact-admin-text {
        display: none;
    }
}