/* Medicine Shop Login Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #0f172a !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background: #0f172a !important;
    /* Fallback */
    background: radial-gradient(circle at top right, #1e293b, #0f172a) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Hide layout-auth2 default elements when this CSS is active */
.tw-absolute.tw-top-2,
.tw-absolute.tw-top-5,
.tw-absolute.tw-top-8 {
    display: none !important;
}

/* Abstract Background Shapes */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

body::before {
    width: 600px;
    height: 600px;
    background: rgba(16, 185, 129, 0.15);
    /* Emerald */
    top: -200px;
    left: -200px;
    animation: float 15s infinite ease-in-out;
}

body::after {
    width: 700px;
    height: 700px;
    background: rgba(14, 165, 233, 0.15);
    /* Sky Blue */
    bottom: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Container Overrides */
.container-fluid {
    width: 100%;
    min-height: 100vh;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.row.eq-height-row {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    background: transparent !important;
}

.right-col {
    background: transparent !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* Login Card Logo Integration */
.login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Login Card */
.medicine-login-wrapper {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 28px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    color: white;
    z-index: 10;
}

/* Header */
.medicine-login-header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.medicine-login-header h2 {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Inputs */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 0.8rem 1rem !important;
    width: 100%;
    transition: all 0.3s ease;
    height: 3rem !important;
    /* Ensure height */
}

.form-group input:focus {
    border-color: #10b981 !important;
    /* Emerald focus */
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Icons */
.input-icon-wrapper {
    position: relative;
}

.show_hide_icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    height: auto;
}

.show_hide_icon:hover {
    color: #fff;
}

/* Button */
button[type="submit"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem;
    width: 100%;
    margin-top: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Links */
.forgot-password {
    color: #38bdf8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Demo Buttons (if visible) */
.demo-login-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.demo-login-wrapper h4 {
    color: white;
}

.btn-app {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5px;
}

.btn-app:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.register-link a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Language Switcher Trigger */
.language-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.language-wrapper:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-modal-trigger {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.lang-modal-trigger:hover {
    color: white;
}

/* Modern Modal Design */
/* Modern Modal Design */
.medicine-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.medicine-modal-content {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    border-radius: 32px;
    width: 95%;
    max-width: 550px;
    overflow: hidden;
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.medicine-modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medicine-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.medicine-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal Body */
.medicine-modal-body::-webkit-scrollbar {
    width: 6px;
}

.medicine-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.medicine-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.lang-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.lang-item.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.lang-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Checkbox */
/* Custom Styled Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    outline: none !important;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper span {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    cursor: pointer;
}