/* --- Global Resets & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
}

/* --- Fixed Background --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/background.png') no-repeat center center;
    background-size: cover;
    z-index: -1; 
}

/* --- Clean Layout Wrapper --- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 20px; 
    position: relative;
}

/* --- Centered Logo Container --- */
.logo-container {
    width: 100%;
    max-width: 220px; 
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    z-index: 10; 
    transition: all 0.3s ease;
}

.logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 8px 12px rgba(0,0,0,0.15)); 
}

/* --- Login Box with Image Background --- */
.login-card {
    position: relative;
    width: 100%;
    max-width: 340px; 
    padding: 35px 25px; 
    background: url('assets/box-bg.png') no-repeat center center;
    background-size: cover; 
    border: 1.5px solid rgba(220, 180, 100, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(139, 101, 8, 0.15);
    transition: all 0.3s ease;
}

/* --- Form Elements --- */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    color: #A37A40; 
    font-size: 13px;
    font-weight: 600;
    padding-left: 5px;
}

/* Input Fields */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(220, 180, 100, 0.4);
    border-radius: 8px;
    color: #4A3B22;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #D1A14E;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(220, 180, 100, 0.3);
}

/* --- Pure CSS Golden Button --- */
.login-btn {
    margin-top: 5px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #FCE38A 0%, #DDA03B 100%);
    color: #2D2210;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(221, 160, 59, 0.4);
    transition: all 0.2s ease;
}

.login-btn:hover { background: linear-gradient(180deg, #FDE9A3 0%, #E5AE48 100%); transform: translateY(-1px); }
.login-btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(221, 160, 59, 0.3); }

/* --- Footer Links & Text --- */
.forgot-link {
    text-align: center;
    color: #B58F58;
    text-decoration: none;
    font-size: 12px;
    margin-top: 2px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover { color: #8C6A3B; }

.version-text {
    margin-top: 20px;
    color: #9C8E7B;
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================================================
   DESKTOP & TABLET BREAKPOINT
   ========================================================================= */
@media (min-width: 768px) {
    body, html {
        overflow: hidden; 
    }
    .login-wrapper {
        padding: 0; 
    }
    .login-card {
        max-width: 380px; 
        padding: 40px 35px;
    }
    .logo-container {
        max-width: 270px; 
        margin-bottom: 4vh; 
    }
    label { font-size: 14px; }
    input[type="text"],
    input[type="password"] {
        font-size: 15px;
        padding: 14px 16px;
    }
    .login-btn {
        font-size: 16px;
        padding: 15px;
        margin-top: 10px;
    }
    .forgot-link { font-size: 13px; }
    .version-text { 
        position: absolute; 
        bottom: 15px; 
        font-size: 13px; 
    }
}

/* ==========================================================================
   REACT APP KO HIDE KARNE KA LOGIC (Pehle React App background me load hota tha)
   ========================================================================= */
body:has(#custom-ui[style*="display: block"]) #root,
body:has(#custom-ui:not([style*="display: none"])) #root {
    display: none !important;
}