/* CliniQo Admin Login Styling */
:root {
    --med-blue: #0077FE;
    --med-cyan: #00B4D8;
    --med-teal: #00C49F;
    --med-text-dark: #1E293B;
    --med-text-muted: #64748B;
    --med-bg-light: #F4F9FD;
    --med-card-bg: #FFFFFF;
    --med-gradient: linear-gradient(135deg, #0077FE 0%, #00B4D8 45%, #00C49F 100%);
    --med-gradient-soft: linear-gradient(135deg, #E0F2FE 0%, #E6FFFA 100%);
    --med-gradient-hover: linear-gradient(135deg, #0060d4 0%, #009ab8 45%, #00aa89 100%);
    --med-shadow: 0 20px 60px rgba(0, 119, 254, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #F0F7FC;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.cliniqo-login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 15px;
    background: radial-gradient(circle at 10% 10%, rgba(0, 180, 216, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(0, 196, 159, 0.14) 0%, transparent 45%),
                linear-gradient(135deg, #F0F8FF 0%, #EBF7F9 50%, #F4F9FC 100%);
}

/* Ambient Decorative Soft Blobs */
.med-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    animation: floatBlob 10s ease-in-out infinite alternate;
}
.med-blob-1 {
    width: 360px;
    height: 360px;
    background: rgba(0, 119, 254, 0.15);
    top: 8%;
    left: 6%;
}
.med-blob-2 {
    width: 320px;
    height: 320px;
    background: rgba(0, 196, 159, 0.18);
    bottom: 8%;
    right: 6%;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, 30px) scale(1.08); }
}

/* Main Card */
.cliniqo-login-card {
    width: 100%;
    max-width: 1020px;
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(14, 43, 77, 0.09),
                0 0 0 1px rgba(0, 180, 216, 0.12);
    display: flex;
    position: relative;
    z-index: 10;
    animation: cardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Left Side: Medical Clean Showcase Panel */
.medical-showcase-panel {
    flex: 1.05;
    background: linear-gradient(160deg, #F0F8FF 0%, #E6F6F9 50%, #F5FCFD 100%);
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(0, 180, 216, 0.15);
    overflow: hidden;
}
[dir="rtl"] .medical-showcase-panel,
html[dir="rtl"] .medical-showcase-panel {
    border-right: none;
    border-left: 1px solid rgba(0, 180, 216, 0.15);
}

.med-top-logo {
    margin-bottom: 24px;
}
.med-top-logo img {
    height: 48px;
    width: auto;
}

.med-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 196, 159, 0.35);
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 700;
    color: #009688;
    box-shadow: 0 2px 8px rgba(0, 196, 159, 0.1);
    margin-bottom: 18px;
}

.med-headline {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--med-text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}
.med-headline span {
    background: var(--med-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.med-subtext {
    font-size: 14px;
    color: var(--med-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Feature Items */
.med-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}
.med-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 180, 216, 0.14);
    padding: 13px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 119, 254, 0.04);
    transition: all 0.3s ease;
}
.med-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--med-teal);
    box-shadow: 0 8px 20px rgba(0, 196, 159, 0.12);
}
.med-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--med-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
}
.med-feature-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--med-text-dark);
    margin: 0 0 2px 0;
}
.med-feature-info p {
    font-size: 12px;
    color: var(--med-text-muted);
    margin: 0;
}

.med-footer-security {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    padding-top: 10px;
}
.med-footer-security i {
    color: var(--med-teal);
    font-size: 14px;
}

/* Right Side: Form Panel */
.medical-form-panel {
    flex: 1;
    padding: 50px 48px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.portal-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #EBF7FC;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #0284C7;
}
.portal-pill span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--med-teal);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.lang-btn:hover {
    background: var(--med-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
}

.login-heading-area {
    margin-bottom: 30px;
}
.login-main-title {
    font-size: 25px;
    font-weight: 800;
    color: var(--med-text-dark);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}
.login-main-desc {
    font-size: 14px;
    color: var(--med-text-muted);
    margin: 0;
}

/* Input Groups */
.med-input-group {
    margin-bottom: 22px;
}
.med-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}
.med-input-box {
    position: relative;
    display: flex;
    align-items: center;
}
.med-input-box .input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
}
[dir="rtl"] .med-input-box .input-icon,
html[dir="rtl"] .med-input-box .input-icon {
    left: auto;
    right: 16px;
}

.med-form-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 44px;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    background-color: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}
[dir="rtl"] .med-form-control,
html[dir="rtl"] .med-form-control {
    padding: 10px 44px 10px 16px;
}

.med-form-control:focus {
    background-color: #ffffff;
    border-color: var(--med-cyan);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.14);
}
.med-form-control:focus + .input-icon,
.med-form-control:focus ~ .input-icon {
    color: var(--med-cyan);
}

.pass-eye-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: color 0.2s ease;
}
[dir="rtl"] .pass-eye-btn,
html[dir="rtl"] .pass-eye-btn {
    right: auto;
    left: 16px;
}
.pass-eye-btn:hover {
    color: var(--med-text-dark);
}

/* Extras */
.med-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13.5px;
}
.med-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--med-text-muted);
    margin: 0;
    font-weight: 500;
    user-select: none;
}
.med-checkbox-label input {
    width: 17px;
    height: 17px;
    accent-color: var(--med-teal);
    cursor: pointer;
}
.med-forgot-link {
    color: var(--med-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.med-forgot-link:hover {
    color: var(--med-teal);
    text-decoration: underline;
}

/* Action Button */
.med-submit-btn {
    width: 100%;
    height: 50px;
    background: var(--med-gradient);
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 119, 254, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.med-submit-btn:hover {
    background: var(--med-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 196, 159, 0.35);
    color: #ffffff;
}
.med-submit-btn:active {
    transform: translateY(0);
}

.med-back-home {
    text-align: center;
    margin-top: 22px;
}
.med-back-home a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--med-text-muted);
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.med-back-home a:hover {
    color: var(--med-cyan);
}

.error-msg {
    color: #EF4444;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

@media (max-width: 900px) {
    .cliniqo-login-card {
        flex-direction: column;
        max-width: 480px;
    }
    .medical-showcase-panel {
        padding: 35px 30px;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(0, 180, 216, 0.15);
    }
    .medical-form-panel {
        padding: 35px 30px;
    }
    .med-headline {
        font-size: 22px;
    }
    .med-features-list {
        display: none;
    }
}
