* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: space-between; /* Content ko corners par stretch karega */
    align-items: center;
    padding: 0 8%; /* Left aur right side se equal visual space padding */
    position: relative;
    overflow-x: hidden;
    background-color: #0b0f19; /* Fallback dark theme background */
}

/* Blurry Background Setup using login.png */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/login.png'); /* File name change verified */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px); /* Enhanced modern blur effect */
    transform: scale(1.1); 
    z-index: -2;
}

/* Dark layout shadow mask to keep background elegant and text readable */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.45);
    z-index: -1;
}

/* Left Side Branding CSS Structure */
.brand-section {
    max-width: 550px;
    color: #ffffff;
    z-index: 10;
    padding-right: 40px;
    animation: fadeInContainer 0.8s ease-out;
}

.brand-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Premium Gradient Gold Text Layer */
.golden-text {
    background: linear-gradient(135deg, #ffe082 0%, #ffb300 50%, #ffa000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.brand-tagline {
    font-size: 18px;
    color: #e5e7eb;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Right Corner Bound Panel Design (Glassmorphism Effect) */
.panel {
    background: rgba(255, 255, 255, 0.96);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 420px;
    z-index: 10;
    animation: slideInPanel 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

h2 {
    text-align: center;
    color: #111827;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
}

.google-box {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.row-input {
    margin-bottom: 18px;
}

.row-input input {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    background: #f9fafb;
}

.row-input input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.captcha-row {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.toggle-link {
    text-align: center;
    margin-bottom: 22px;
    font-weight: 600;
    color: #4b5563;
    font-size: 14px;
}

.toggle-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #1d4ed8;
}

button:active {
    transform: scale(0.98);
}

/* Alerts System Popup Layer */
/* Alerts System Popup Layer */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* CHANGE: Right side se hatakar bilkul center mein align karne ke liye */
    justify-content: center;  
    align-items: center;
    padding: 0 20px; /* Mobile responsive padding taaki screen se chipke na */
}

.modal-box {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    /* CHANGE: Purani slideInRight animation ko badal kar scale-in (zoom effect) kiya */
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

/* Animations Profiles ke section mein yeh nayi animation add karein */
@keyframes modalScaleIn {
    from { 
        transform: scale(0.85); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.modal-box.success h3 { color: #16a34a; }
.modal-box.error h3 { color: #dc2626; }

.modal-box p {
    margin: 14px 0 20px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.modal-box button {
    padding: 9px 24px;
    background: #1f2937;
    font-size: 14px;
    width: auto;
    display: inline-block;
}

/* Animations Profiles */
@keyframes fadeInContainer {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInPanel {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive UI Adjustment Layer for Tablets/Mobiles */
@media (max-width: 968px) {
    body {
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
    }
    .brand-section {
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .brand-title {
        font-size: 36px;
    }
    .panel {
        max-width: 100%;
    }
    .modal {
        justify-content: center;
        padding-right: 0;
    }
}