body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 25%, #a5d6a7 50%, #81c784 75%, #66bb6a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.login-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 380px;
    max-width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 200px;  /* Reduced from 80px */
    height: 80px; /* Reduced from 80px */
    margin-bottom: 10px; /* Reduced spacing */
    border-radius: 6px;
    object-fit: contain;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.login-container input {
    width: 100%;
    padding: 16px 16px 12px 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
}

.login-container input:not(:placeholder-shown) {
    border-color: #66bb6a;
}

.login-container label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-container input:focus + label,
.login-container input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #66bb6a;
    background-color: #111111;
    padding: 2px 8px;
    border-radius: 4px;
    left: 12px;
}

.login-container input:focus {
    border-color: #66bb6a;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.2);
}
.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-container button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.login-container button:hover {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 187, 106, 0.4);
}

.login-container button:active {
    transform: translateY(0);
}

.error {
    color: #d32f2f;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 6px;
    border-left: 4px solid #d32f2f;
    font-weight: 500;
    font-size: 14px;
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Loading animation */
.loading {
    display: none;
}

.login-container.loading button {
    position: relative;
    color: transparent;
}

.login-container.loading button::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s ease infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .login-container h2 {
        font-size: 22px;
    }
}

/* QR Button Outside Container */
.qr-section-outer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.qr-btn-outer {
    background: rgba(255, 255, 255, 0.9);
    color: #757575;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.qr-btn-outer:hover {
    background: rgba(255, 255, 255, 1);
    color: #424242;
    border-color: #bdbdbd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Remove the old QR section styles */
.qr-section {
    display: none;
}

/* Keep the existing QR modal styles as they are */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
}

.qr-modal-header h3 {
    margin: 0;
    color: #2e7d32;
    font-size: 18px;
    font-weight: 600;
}

.qr-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #757575;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qr-close-btn:hover {
    background-color: #f5f5f5;
    color: #d32f2f;
}

.qr-modal-body {
    padding: 25px;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.qr-code-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-instructions {
    text-align: center;
}

.qr-instructions p {
    margin: 0 0 10px 0;
    color: #424242;
    line-height: 1.5;
}

.qr-note {
    font-size: 13px;
    color: #757575;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .qr-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .qr-modal-header {
        padding: 15px 20px;
    }
    
    .qr-modal-body {
        padding: 20px;
    }
    
    .qr-section-outer {
        bottom: 15px;
        right: 15px;
    }
    
    .qr-btn-outer {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}