﻿/* ============================================================
   ★ MEDISYSNEXT - LOGIN PAGE STYLES ★
   ============================================================ */

/* ★ LOGIN PAGE BODY ★ */
.login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    padding: 20px;
}

/* ★ MAIN CONTAINER ★ */
.login-container {
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    animation: loginFadeIn 0.6s ease;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ★ LEFT COLUMN - PICTURE ★ */
.login-picture {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

    .login-picture::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
        animation: pulseGlow 8s ease-in-out infinite;
    }

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.login-picture img {
    max-width: 80%;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-picture .picture-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    margin-top: 30px;
}

    .login-picture .picture-overlay h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .login-picture .picture-overlay p {
        font-size: 14px;
        opacity: 0.8;
        max-width: 80%;
        margin: 0 auto;
    }

/* ★ RIGHT COLUMN - LOGIN FORM ★ */
.login-form {
    flex: 1;
    padding: 48px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ★ LOGO ★ */
.login-logo {
    margin-bottom: 28px;
}

    .login-logo .logo-icon {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    }

        .login-logo .logo-icon i {
            font-size: 28px;
            color: #ffffff;
        }

    .login-logo h1 {
        font-size: 24px;
        font-weight: 800;
        color: #1a1a2e;
        letter-spacing: -0.5px;
        margin: 0;
    }

        .login-logo h1 span {
            color: #4F46E5;
        }

    .login-logo p {
        color: #6b7280;
        font-size: 14px;
        font-weight: 400;
        margin-top: 2px;
    }

/* ★ FORM ELEMENTS ★ */
.login-form .form-group {
    margin-bottom: 18px;
}

    .login-form .form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        display: block;
        margin-bottom: 4px;
    }

        .login-form .form-group label i {
            margin-right: 8px;
            color: #4F46E5;
        }

.login-form .input-group-custom {
    position: relative;
}

    .login-form .input-group-custom .form-control {
        height: 46px;
        padding: 0 16px;
        font-size: 14px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        background: #f9fafb;
        transition: all 0.3s ease;
        color: #1a1a2e;
    }

        .login-form .input-group-custom .form-control:focus {
            border-color: #4F46E5;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
            background: #ffffff;
        }

        .login-form .input-group-custom .form-control::placeholder {
            color: #9ca3af;
            font-weight: 400;
        }

/* ★ PASSWORD TOGGLE ★ */
.login-form .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    transition: color 0.3s ease;
}

    .login-form .password-toggle:hover {
        color: #4F46E5;
    }

/* ★ REMEMBER ME ★ */
.login-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-form .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .login-form .form-check-input:checked {
        background-color: #4F46E5;
        border-color: #4F46E5;
    }

    .login-form .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }

.login-form .form-check-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
}

/* ★ LOGIN BUTTON ★ */
.login-form .btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

    .login-form .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
    }

    .login-form .btn-login:active {
        transform: translateY(0);
    }

/* ★ ERROR ★ */
.login-form .alert-custom {
    border-radius: 10px;
    border: none;
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 18px;
    border-left: 4px solid #ef4444;
}

    .login-form .alert-custom i {
        margin-right: 8px;
        color: #ef4444;
    }

/* ★ FOOTER ★ */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

    .login-footer p {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
    }

    .login-footer a {
        color: #4F46E5;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .login-footer a:hover {
            color: #7C3AED;
            text-decoration: underline;
        }

    .login-footer .footer-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 6px;
    }

        .login-footer .footer-links a {
            font-size: 13px;
            font-weight: 400;
            color: #6b7280;
        }

            .login-footer .footer-links a:hover {
                color: #4F46E5;
            }

/* ★ RESPONSIVE ★ */
@media (max-width: 820px) {
    .login-container {
        flex-direction: column;
        max-width: 480px;
    }

    .login-picture {
        flex: 0 0 auto;
        min-height: 200px;
        padding: 30px;
    }

        .login-picture img {
            max-width: 60%;
        }

        .login-picture .picture-overlay h2 {
            font-size: 22px;
        }

    .login-form {
        padding: 32px 28px 28px;
    }
}

@media (max-width: 480px) {
    .login-picture {
        min-height: 160px;
        padding: 20px;
    }

        .login-picture img {
            max-width: 50%;
        }

        .login-picture .picture-overlay {
            margin-top: 16px;
        }

            .login-picture .picture-overlay h2 {
                font-size: 18px;
            }

            .login-picture .picture-overlay p {
                font-size: 12px;
            }

    .login-form {
        padding: 24px 20px 24px;
    }

    .login-logo h1 {
        font-size: 20px;
    }

    .login-form .btn-login {
        height: 46px;
        font-size: 14px;
    }
}
