/* Dashboard Login Page Custom Styles */

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    background-color: #ffffff;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Section Styles */
.login-left-section {
    flex: 1;
    background: linear-gradient(135deg, var(--login-gradient-start, #E0F7FA) 0%, var(--login-gradient-mid, #B2EBF2) 30%, var(--login-gradient-end, #FFFFFF) 70%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-left-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 2;
}

/* Background Decorative Shapes */
.login-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--login-shape-1-color, #4CAF50);
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--login-shape-2-color, #2196F3);
    top: 60%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--login-shape-3-color, #FF9800);
    top: 30%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Wave-like separator effect */
.login-left-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    clip-path: ellipse(80% 100% at 50% 100%);
    z-index: 1;
}

/* Hello Text */
.login-left-text {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.login-hello {
    font-size: 4.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-exclamation {
    color: var(--dashboard-theme-color, var(--login-accent-color, #4CAF50));
    font-weight: 900;
}

.login-subtitle {
    font-size: 1.15rem;
    color: #555555;
    margin-top: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* Doctor Illustration */
.login-doctor-illustration {
    position: absolute;
    right: -50px;
    bottom: 0;
    z-index: 2;
    max-width: 400px;
    height: auto;
}

.doctor-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Right Section Styles */
.login-right-section {
    flex: 1;
    background-color: #FFFFFF;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-right-shapes {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.right-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.right-shape-1 {
    width: 120px;
    height: 120px;
    background: #FF9800;
    top: 0;
    right: 0;
}

.right-shape-2 {
    width: 80px;
    height: 80px;
    background: #2196F3;
    top: 40px;
    right: 60px;
}

/* Form Container */
.login-form-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    margin-top: -4rem;
}

.login-form-container * {
    box-sizing: border-box !important;
}

/* Logo Header */
.login-logo-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.login-logo-img {
    max-height: 200px;
    max-width: 580px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dashboard-theme-color, var(--login-accent-color, #4CAF50));
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-hospital-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.5px;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.login-form-group {
    margin-bottom: 1.5rem;
}

.login-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
    text-align: end;
}

.login-input {
    width: 100% !important;
    height: 54px !important;
    padding: 0 1.25rem !important;
    padding-inline-end: 3.5rem !important;
    font-size: 1rem;
    border: 1px solid var(--dashboard-theme-color, #E0E0E0);
    border-radius: 12px;
    background-color: #FFFFFF;
    color: #333333;
    transition: all 0.3s ease;
    outline: none;
    background-image: none !important;
    /* Force remove bootstrap validation icons */
    box-sizing: border-box !important;
}

.login-input:focus {
    border-color: var(--dashboard-theme-color, var(--login-accent-color, #4CAF50));
    box-shadow: 0 0 0 3px var(--dashboard-theme-light, rgba(76, 175, 80, 0.1));
}

.login-input::placeholder {
    color: #9E9E9E;
    text-align: end !important;
}

/* Input Wrapper */
.login-input-wrapper,
.login-password-wrapper {
    position: relative;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
}

.login-email-input,
.login-password-input {
    padding-right: 3.5rem !important;
}

.login-password-input.error,
.login-password-input.is-invalid,
.login-password-wrapper.has-error .login-password-input {
    border-color: var(--login-error-color, #FF5722);
}

.login-form-group.has-error .login-input {
    border-color: var(--login-error-color, #FF5722);
}

.login-password-toggle {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    inset-inline-end: 1rem !important;
    color: #757575;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    transition: color 0.3s ease;
    z-index: 10;
}

.login-password-toggle:hover {
    color: var(--dashboard-theme-color, var(--login-accent-color, #4CAF50));
}

.login-password-toggle i {
    font-size: 1.2rem;
}

/* Error Message */
.login-error-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--login-error-color, #FF5722);
    min-height: 1.25rem;
}

.error {
    color: var(--login-error-color, #FF5722);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--login-button-start, var(--dashboard-theme-color, #2196F3)) 0%, var(--login-button-end, var(--dashboard-theme-color, #2196F3)) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--login-button-start, var(--dashboard-theme-color, #2196F3)) 0%, var(--login-button-end, var(--dashboard-theme-color, #2196F3)) 100%);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px var(--dashboard-theme-shadow, rgba(33, 150, 243, 0.3));
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }

    .login-left-section {
        min-height: 40vh;
        padding: 2rem;
    }

    .login-hello {
        font-size: 3.5rem;
    }

    .login-doctor-illustration {
        right: -30px;
        max-width: 300px;
    }

    .doctor-img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .login-left-section {
        min-height: 35vh;
        padding: 1.5rem;
    }

    .login-hello {
        font-size: 2.5rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .login-doctor-illustration {
        max-width: 250px;
        right: -20px;
    }

    .doctor-img {
        max-height: 280px;
    }

    .login-right-section {
        padding: 2rem 1.5rem;
    }

    .login-logo-header {
        margin-bottom: 2rem;
    }

    .login-logo-text,
    .login-hospital-text {
        font-size: 1.5rem;
    }

    .login-form-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-left-section {
        min-height: 30vh;
        padding: 1rem;
    }

    .login-hello {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .login-doctor-illustration {
        max-width: 200px;
        right: -15px;
    }

    .doctor-img {
        max-height: 220px;
    }

    .login-right-section {
        padding: 1.5rem 1rem;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
}

/* Hide loader if needed */
.loader {
    display: none;
}

/* Ensure form validation styles work */
.login-input.is-invalid {
    border-color: var(--login-error-color, #FF5722);
}

.login-input.is-valid {
    border-color: var(--dashboard-theme-color, var(--login-accent-color, #4CAF50));
}