/* Modern Patient Login Styles */
.login-page-wrapper {
    background: radial-gradient(circle at 10% 20%, rgba(0, 118, 206, 0.06) 0%, rgba(240, 247, 255, 0.8) 50%, #f8fafc 100%);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 40px 15px 120px;
    position: relative;
    overflow: hidden;
}

/* Background Ambient Glows */
.login-page-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 213, 127, 0.12) 0%, rgba(1, 213, 127, 0) 70%);
    pointer-events: none;
}

.login-page-wrapper::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 118, 206, 0.12) 0%, rgba(0, 118, 206, 0) 70%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Pending Booking Item Context Card */
.pending-booking-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 18px;
}

.pending-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pending-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.pending-step-indicator {
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.step-dot.active {
    background: #0284c7;
    width: 12px;
    border-radius: 10px;
}

.pending-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 12px 14px;
}

.pending-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.pending-item-details {
    min-width: 0;
    flex: 1;
}

.pending-item-tag {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pending-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-card-footer {
    margin-top: 10px;
    font-size: 12.5px;
    color: #0369a1;
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1.35;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Login Card */
.login-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 38px 32px 32px;
    box-shadow: 0 20px 45px -10px rgba(0, 118, 206, 0.12), 0 0 1px 1px rgba(0, 118, 206, 0.04);
    position: relative;
    z-index: 2;
    animation: fadeIn 0.5s ease;
}

.brand-avatar,
.login-header-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.25);
    border: 2px solid #ffffff;
}

.login-title {
    font-weight: 800;
    font-size: 25px;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

.custom-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.input-label,
.form-label-custom {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

/* Phone / Mobile Input Group */
.mobile-input-group,
.phone-input-group {
    display: flex !important;
    align-items: stretch !important;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    width: 100%;
}

.mobile-input-group:focus-within,
.phone-input-group:focus-within {
    border-color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.mobile-input-group.is-invalid,
.phone-input-group.is-invalid {
    border-color: #ef4444;
    background-color: #fff5f5;
}

.country-prefix,
.country-code {
    background: #f1f5f9;
    border: none;
    border-right: 1.5px solid #e2e8f0;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14.5px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    white-space: nowrap;
}

.mobile-control,
.phone-control {
    flex: 1;
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.5px;
    box-shadow: none !important;
}

.mobile-control::placeholder,
.phone-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 14.5px;
    letter-spacing: normal;
}

.error-feedback {
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

/* Submit Button */
.btn-login-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #0076ce 0%, #005a9e 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 118, 206, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #006bbd 0%, #004f8b 100%);
    box-shadow: 0 14px 28px -5px rgba(0, 118, 206, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

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

.btn-login-submit .btn-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-login-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Trust footer */
.login-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.trust-item {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-dot {
    color: #cbd5e1;
    font-size: 14px;
}

.login-help-note {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
}

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

@media (max-width: 576px) {
    .login-page-wrapper {
        padding: 25px 12px 100px;
        min-height: auto;
    }

    .login-card {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .btn-login-submit {
        height: 48px;
        font-size: 15px;
    }
}
