/* MedEzee Auth Pages - Custom Overrides */
/* This file adds polish to Skote auth pages without changing theme colors */
/* Do NOT override Skote background colors - only remove background images if needed */

/* ========================================
   MedEzee Logo Styling
   ======================================== */
.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-logo-light {
    display: none;
}

.auth-logo-dark {
    display: inline-block;
}

/* Dark mode support (if needed) */
[data-layout-mode="dark"] .auth-logo-light {
    display: inline-block;
}

[data-layout-mode="dark"] .auth-logo-dark {
    display: none;
}

/* ========================================
   Background Image Removal ONLY
   (Keep Skote theme colors intact)
   ======================================== */

/* Remove only background images - do NOT change colors */
.auth-full-bg {
    background-image: none !important;
}

.auth-full-bg .bg-overlay {
    background-image: none !important;
}

/* ========================================
   Form Container Polish
   ======================================== */

/* Form container polish - subtle card effect */
.auth-full-page-content .my-auto {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Welcome text */
.auth-full-page-content h5.text-primary {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Input Fields Styling
   ======================================== */

.auth-full-page-content .form-control {
    border: 1.5px solid #e2e5e8;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-full-page-content .form-control:focus {
    border-color: #556ee6;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.15);
}

.auth-full-page-content .form-control::placeholder {
    color: #adb5bd;
}

/* Input group (password field with toggle) */
.auth-full-page-content .input-group .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-full-page-content .input-group .btn-light {
    border: 1.5px solid #e2e5e8;
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #74788d;
    transition: all 0.2s ease;
}

.auth-full-page-content .input-group .btn-light:hover {
    color: #556ee6;
}

.auth-full-page-content .input-group:focus-within .btn-light {
    border-color: #556ee6;
}

/* Form labels */
.auth-full-page-content .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Checkbox styling */
.auth-full-page-content .form-check-input {
    border-radius: 4px;
    border: 1.5px solid #ced4da;
}

.auth-full-page-content .form-check-input:checked {
    background-color: #556ee6;
    border-color: #556ee6;
}

.auth-full-page-content .form-check-label {
    color: #74788d;
    font-size: 0.9rem;
}

/* ========================================
   Primary Button Styling
   ======================================== */

.auth-full-page-content .btn-primary {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.35);
}

.auth-full-page-content .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(85, 110, 230, 0.45);
    transform: translateY(-1px);
}

.auth-full-page-content .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(85, 110, 230, 0.3);
}

/* ========================================
   Alert Styling
   ======================================== */

.auth-full-page-content .alert-danger {
    border-radius: 8px;
}

/* Validation error text */
.auth-full-page-content .text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 1199.98px) {
    .auth-full-page-content .my-auto {
        box-shadow: none;
        padding: 1.5rem;
    }
}

/* ============================================================
   MedEzee Login v2 — scoped redesign
   All rules below scoped under .me-login so they don't bleed
   into other auth pages (TwoStep, LockScreen, ForgotPassword,
   ResetPassword, VerifyEmail, ConfirmEmailResult).
   ============================================================ */

.me-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 60% 40%;
    background: #ffffff;
}

.me-login__brand {
    background: linear-gradient(160deg, rgba(85, 110, 230, 0.18) 0%, rgba(85, 110, 230, 0.28) 100%);
    padding: 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #1a237e;
    position: relative;
    overflow: hidden;
}

.me-login__brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 88% 12%, rgba(85, 110, 230, 0.10) 0, transparent 40%),
        radial-gradient(circle at 10% 92%, rgba(85, 110, 230, 0.08) 0, transparent 35%);
    pointer-events: none;
}

.me-login__brand > * {
    position: relative;
}

.me-login__brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-login__brand-mark img {
    height: 44px;
    width: auto;
    display: block;
}

.me-login__brand-mark-fallback {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #556ee6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.me-login__hero {
    max-width: 460px;
}

.me-login__hero h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
    color: #1a237e;
    margin: 0 0 16px;
}

.me-login__hero p {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3585;
    margin: 0 0 28px;
    opacity: 0.85;
}

.me-login__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.me-login__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #2d3585;
}

.me-login__features .me-feat-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(85, 110, 230, 0.15);
    color: #556ee6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.me-login__brand-footer {
    font-size: 12px;
    color: #2d3585;
    opacity: 0.7;
}

/* ---------- Right pane: form ---------- */

/* Logo block at top of the form pane — used by non-login auth pages */
.me-login__form-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.me-login__form-logo img {
    height: 40px;
    width: auto;
}

.me-login__form-logo small {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.me-login__form-wrap {
    padding: 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    min-height: 100vh;
}

.me-login__form {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.me-login__title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 4px;
}

.me-login__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.5;
}

.me-login__subtitle strong {
    color: #1a1f36;
    font-weight: 600;
}

.me-env-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: 2px;
}

.me-env-badge--dev { background: #fef3c7; color: #92400e; }
.me-env-badge--staging { background: #dbeafe; color: #1e40af; }
.me-env-badge--testing { background: #ede9fe; color: #5b21b6; }

.me-login__field {
    margin-bottom: 16px;
}

.me-login__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.me-login__input-wrap {
    position: relative;
}

.me-login__input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.me-login__input-icon--right {
    left: auto;
    right: 12px;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    color: #6b7280;
}

.me-login__input-icon--right:hover { color: #1a1f36; }

.me-login .me-login__input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #1a1f36;
    box-shadow: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.me-login .me-login__input:hover { border-color: #9ca3af; }

.me-login .me-login__input:focus {
    border-color: #556ee6;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.15);
    outline: 0;
}

.me-login__input--password { padding-right: 44px; }

.me-login__hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.me-login__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.me-login__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.me-login__check input { margin: 0; }

.me-login__link {
    font-size: 13px;
    color: #556ee6;
    text-decoration: none;
    font-weight: 500;
}

.me-login__link:hover { color: #3d54c4; text-decoration: underline; }

.me-login__submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #556ee6;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease, transform 80ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.me-login__submit:hover { background: #3d54c4; }
.me-login__submit:active { transform: translateY(1px); }

.me-login__footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.me-login .alert {
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.me-login__validation {
    display: block;
    font-size: 12px;
    color: #b91c1c;
    margin-top: 4px;
}

/* ---------- Responsive: collapse to single pane below xl ---------- */

@media (max-width: 991.98px) {
    .me-login {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .me-login__brand {
        padding: 32px 24px;
        min-height: 280px;
    }
    .me-login__hero h1 { font-size: 26px; }
    .me-login__hero p { font-size: 14px; margin-bottom: 18px; }
    .me-login__features li { font-size: 14px; }
    .me-login__form-wrap {
        padding: 32px 24px 48px;
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .me-login__brand { padding: 24px 20px; min-height: 220px; }
    .me-login__hero h1 { font-size: 22px; }
    .me-login__features { gap: 10px; }
    .me-login__form-wrap { padding: 24px 20px 32px; }
}
