* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

:root {
    --theme-color: #444;
    --dark-theme-color: #222;
}

.login-container {
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    width: 900px;
    max-width: 90%;
    background-color: white;
}

.image-section {
    flex: 1;
    /*background-color: #dbe1e5;*/
    background-color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-right: 1px solid #dbdbdb;
}

.image-section img {
    max-width: 62%;
    max-height: 400px;
}

.form-section {
    flex: 1;
    padding: 40px;
}

.logo {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(45, 99, 237, 0.1);
}

button.signin-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.signin-btn:hover {
    background-color: var(--dark-theme-color);
}

.copyright {
    text-align: center;
    color: #82868f;
    font-size: 1rem;
    margin-top: 20px;
}

#usernameError,
#passwordError {
    position: absolute;
    color: #f00;
    font-size: 0.8rem;
}


/* // Password show and Hide Functionality Start */

.password-container {
    position: relative;
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.toggle-button {
    position: absolute;
    right: 10px;
    top: 72%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #718096;
}

.toggle-button:hover {
    color: #2d3748;
}

.toggle-button:focus {
    outline: none;
}

.strength-indicator {
    font-size: 0.875rem;
    color: #718096;
}

.strength-value {
    font-weight: 600;
}


/* Added by Uday 13/05/2025 */

.error-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background-color: #ffffff;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    padding: 16px;
    animation: slideIn 0.3s ease-out forwards;
    z-index: 1000;
}

.error-icon {
    color: #dc2626;
    margin-right: 12px;
    flex-shrink: 0;
}

.error-content {
    flex-grow: 1;
}

.error-content h4 {
    margin: 0 0 5px 0;
    color: #111827;
    font-size: 16px;
}

.error-content p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    line-height: 1;
    align-self: flex-start;
}

.close-btn:hover {
    color: #111827;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .image-section {
        padding: 60px;
    }
    .image-section img {
        margin-left: 0%;
    }
}