* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(32, 36, 107, 0.85) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans', sans-serif;
}

nav {
    position: relative;
    z-index: 1000;
}

.login_container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.form_wrapper {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

.form_left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(32, 36, 107, 0.85) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

.form_left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/users_3d.png') center/contain no-repeat;
    opacity: 0.1;
}

.form_left_content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.form_left h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'IBM Plex Serif', serif;
}

.form_left p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.form_left .logo_section {
    margin-bottom: 2rem;
}

.form_left .logo_section img {
    width: 100px;
    height: 100px;
}

.form_right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form_header {
    margin-bottom: 2rem;
}

.form_header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form_header p {
    color: #666;
    font-size: 0.95rem;
}

.form_group {
    margin-bottom: 1.5rem;
}

.form_group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input_wrapper {
    position: relative;
}

.form_group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--secondary);
}

.password_group .input_wrapper input {
    padding-right: 3rem;
}

.toggle_password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    user-select: none;
}

.toggle_password:hover {
    color: #1d2467;
}

.form_group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 36, 103, 0.1);
}

.password_group {
    position: relative;
}

.password_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.remember_me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.remember_me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    margin: 0;
}

.remember_me label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.show_password {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.show_password input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot_link {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot_link a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot_link a:hover {
    color: var(--tertiary);
    text-decoration: underline;
}

.submit_btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(32, 36, 107, 0.85) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 36, 103, 0.3);
}

.submit_btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 36, 103, 0.4);
}

.submit_btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 400px;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-danger {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-content {
    flex: 1;
}

.alert-close {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.alert-close:hover {
    opacity: 0.7;
}

.install_btn_container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

#installPWA {
    display: none;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(32, 36, 107, 0.85) 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    gap: 0.5rem;
    align-items: center;
}

#installPWA:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

#installPWA i {
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .form_wrapper {
        flex-direction: column;
        max-width: 500px;
    }

    .form_left {
        padding: 2rem;
    }

    .form_left h1 {
        font-size: 2rem;
    }

    .form_left p {
        font-size: 1rem;
    }

    .form_right {
        padding: 2rem;
    }

    .form_header h2 {
        font-size: 1.75rem;
    }

    .login_container {
        margin-top: 0;
        padding: 1rem;
    }
}

@media (max-width: 576px) {

    .form_left,
    .form_right {
        padding: 1.5rem;
    }

    .form_left h1 {
        font-size: 1.5rem;
    }

    .form_left .logo_section img {
        width: 70px;
        height: 70px;
    }

    .form_header h2 {
        font-size: 1.5rem;
    }

    .form_group input {
        padding: 0.75rem;
    }

    .submit_btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    #installPWA {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .install_btn_container {
        bottom: 1rem;
        left: 1rem;
    }
}

.alert-success, .alert-danger, .list-unstyled {
    position: fixed !important;
    top: 8rem !important;
    right: 2rem !important;
    width: auto !important;
    max-width: 400px !important;
    z-index: 9999 !important;
}
