﻿:root {
    --neon-info: #0dcaf0;
    --neon-glow: rgba(13, 202, 240, 0.25);
    --bg-dark: #090d16;
    --glass-bg: rgba(15, 23, 42, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted-color: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 15px;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-hospital-image {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: url('../images/ASUSH-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
}

.login-container {
    width: 100%;
    width: clamp(720px, 55%, 950px);
    padding: 0;
    z-index: 5;
    height: auto !important;
    max-height: none !important;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--neon-glow);
    border-radius: 40px;
    padding: 50px 45px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    margin: 0 !important;
}

    .login-card:hover {
        border-color: rgba(13, 202, 240, 0.35);
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(13, 202, 240, 0.15);
        transform: translateY(-7px);
    }

.brand-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.brand-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: transparent;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--neon-info);
    box-shadow: 0 0 25px rgba(13, 202, 240, 0.6), 0 0 50px rgba(13, 202, 240, 0.2);
    animation: logoPulse 3s infinite ease-in-out;
    transition: transform 0.4s ease;
    overflow: hidden;
}

    .brand-logo img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        border-radius: 50%;
        object-fit: cover;
    }

@keyframes logoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(13, 202, 240, 0.4);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 25px rgba(13, 202, 240, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(13, 202, 240, 0.4);
    }
}

.tracking-wide {
    letter-spacing: 0.8px;
}

.text-light-muted {
    color: #a1a1aa;
    font-size: 0.93rem;
}

.form-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 9px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 0px;
}

    .input-group-custom .lock-icon,
    .email-icon {
        position: absolute;
        inset-inline-start: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        transition: color 0.3s ease;
        z-index: 10;
        font-size: 1.05rem;
    }

.toggle-password-icon {
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.1s ease;
}

    .toggle-password-icon:hover {
        color: var(--neon-info);
        text-shadow: 0 0 8px var(--neon-glow);
    }

.form-control-custom {
    background: rgba(10, 15, 30, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    color: #f8fafc !important;
    padding-block: 14px !important;
    padding-inline-start: 50px !important;
    padding-inline-end: 45px !important;
    border-radius: 35px !important;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control-custom:focus {
        border-color: var(--neon-info) !important;
        box-shadow: 0 0 15px var(--neon-glow) !important;
        outline: none;
        background: rgba(10, 15, 30, 0.85) !important;
    }

        .form-control-custom:focus + i {
            color: var(--neon-info);
            text-shadow: 0 0 8px var(--neon-glow);
        }

.form-check-custom {
    cursor: pointer;
    background-color: rgba(10, 15, 30, 0.7) !important;
    border: 1px solid var(--glass-border) !important;
    transition: all 0.3s ease-in-out;
    width: 1.1em;
    height: 1.1em;
}

    .form-check-custom:hover {
        border-color: var(--neon-info) !important;
        box-shadow: 0 0 10px rgba(13, 202, 240, 0.4) !important;
    }

    .form-check-custom:checked {
        background-color: var(--neon-info) !important;
        border-color: var(--neon-info) !important;
        box-shadow: 0 0 15px var(--neon-glow) !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23090d16' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    }

    .form-check-custom:focus {
        border-color: var(--neon-info) !important;
        box-shadow: 0 0 15px var(--neon-glow) !important;
    }

.text-link {
    color: var(--neon-info);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s;
}

    .text-link:hover {
        color: #22d3ee;
        text-shadow: 0 0 8px rgba(13, 202, 240, 0.4);
        text-decoration: underline;
    }

.btn-neon-submit {
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--neon-info) 100%);
    border: none;
    color: #090d16;
    font-weight: 600;
    padding: 14px;
    border-radius: 35px;
    width: 100%;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(13, 202, 240, 0.35);
    transition: all 0.3s ease;
    margin-top: 5px;
}

[dir="rtl"] .btn-neon-submit {
    background: linear-gradient(-135deg, var(--glass-bg) 0%, var(--neon-info) 100%);
}

.btn-neon-submit:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.55), 0 0 20px var(--neon-glow);
    color: #090d16;
}

.btn-neon-submit:active {
    transform: translateY(0);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: grey !important;
}

    .separator::before, .separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .separator:not(:empty)::before {
        margin-inline-end: 1em;
    }

    .separator:not(:empty)::after {
        margin-inline-start: 1em;
    }

.social-login-container {
    display: flex;
    gap: 16px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 12px;
    border-radius: 35px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-social:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .btn-social i.fa-google {
        color: #f43f5e;
    }

    .btn-social i.fa-facebook-f {
        color: #3b82f6;
    }

/* ==========================================
    🧪 Glassmorphism Style for Partials Modals
   ========================================== */

.glass-modal {
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
    border-radius: 30px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    padding: 15px 15px;
    will-change: transform, opacity;
}

    .glass-modal .btn-close {
        background-color: rgba(255, 255, 255, 0.05);
        padding: 10px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .glass-modal .btn-close:hover {
            background-color: rgba(244, 63, 94, 0.2);
            transform: rotate(90deg);
        }

.neon-icon-drop {
    text-shadow: 0 0 10px var(--neon-glow);
}

.tracking-widest {
    letter-spacing: 8px !important;
    font-size: 1.3rem !important;
    text-indent: 8px;
}

.modal-backdrop {
    backdrop-filter: blur(6px) !important;
    background-color: rgba(5, 8, 16, 0.6) !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#btnSendOTP {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 35px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease-in-out !important;
    box-shadow: none !important;
    width: 75% !important;
    max-width: 280px !important;
    display: inline-block;
}

    #btnSendOTP:hover {
        border-color: var(--neon-info) !important;
        color: white !important;
        box-shadow: 0 0 10px var(--neon-glow), 0 0 10px rgba(13, 202, 240, 0.4) !important;
        transform: translateY(-5px);
    }

.modal-footer #btnCancelForgot,
.modal-footer [data-bs-dismiss="modal"] {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none;
}

    .modal-footer #btnCancelForgot:hover,
    .modal-footer [data-bs-dismiss="modal"]:hover {
        color: #ff4757 !important;
        text-shadow: 0 0 10px rgba(255, 71, 87, 0.6) !important;
        letter-spacing: 1.7px;
    }

.otp-inputs-wrapper {
    max-width: 360px;
    margin: 0 auto;
}

.otp-field {
    width: 45px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-align: center !important;
    color: var(--neon-info) !important;
    background: rgba(10, 15, 30, 0.7) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, border-color, box-shadow;
}

    .otp-field:focus {
        border-color: var(--neon-info) !important;
        box-shadow: 0 0 15px var(--neon-glow), inset 0 0 5px rgba(13, 202, 240, 0.2) !important;
        transform: scale(1.08);
    }

    .otp-field.has-value {
        animation: digitPulse 0.15s ease-in-out;
    }

@keyframes digitPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.otp-field::-webkit-outer-spin-button,
.otp-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-field[type=number] {
    -moz-appearance: textfield;
}

/* ===================================================
    🛡️ Buttons Styling for OTP Verification Modal
   =================================================== */

#btnUpdatePassword {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 35px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease-in-out !important;
    box-shadow: none !important;
    width: 75% !important;
    max-width: 280px !important;
    display: inline-block;
}

    #btnUpdatePassword:hover {
        border-color: var(--neon-info) !important;
        color: white !important;
        box-shadow: 0 0 10px var(--neon-glow), 0 0 10px rgba(13, 202, 240, 0.4) !important;
        transform: translateY(-5px);
    }

#btnBackToEmailModal {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none;
}

    #btnBackToEmailModal:hover {
        color: #ff4757 !important;
        text-shadow: 0 0 10px rgba(255, 71, 87, 0.6) !important;
        letter-spacing: 1.7px;
    }

@media (max-width: 767.98px) {
    .login-card {
        padding: 35px 20px;
    }

    .login-container {
        width: 100%;
        max-width: 100%;
    }

    .input-form-section {
        border-inline-start: none !important;
        padding-top: 15px;
    }

    .social-group-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 15px;
        margin-top: 20px;
    }

    .account-switch-wrapper {
        text-align: center;
        width: 100%;
        display: block;
    }
}

@media (min-width: 768px) {
    .input-form-section {
        border-inline-start: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .social-login-container {
        max-width: 100% !important;
    }
}

/* ===================================================
   🎬 Premium UI Entrance Animations (New Added)
   =================================================== */

.animate-left-side,
.animate-input-field,
.animate-bottom-side {
    opacity: 0;
    will-change: transform, opacity;
}

/* 💻 تأثير الحركة الموجهة لشاشات الـ Desktop الكبير */
@media (min-width: 768px) {
    .animate-left-side {
        animation: slideInStart 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .animate-input-field {
        animation: slideInEnd 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .animate-bottom-side {
        animation: slideInUp 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
}

/* 📱 تأثير الحركة لشاشات الموبايل (كل العناصر من تحت بالتساوي لتفادي كسر الشاشة) */
@media (max-width: 767.98px) {
    .animate-left-side,
    .animate-input-field,
    .animate-bottom-side {
        animation: slideInUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
}

.left-brand-section .brand-logo-wrapper {
    animation-delay: 0.1s !important;
}

.left-brand-section h2 {
    animation-delay: 0.22s !important;
}

.left-brand-section p {
    animation-delay: 0.3s !important;
}

.input-form-section .animate-input-field:nth-child(1) {
    animation-delay: 0.25s !important;
}

.input-form-section .animate-input-field:nth-child(2) {
    animation-delay: 0.35s !important;
}

.input-form-section .animate-input-field:nth-child(3) {
    animation-delay: 0.42s !important;
}

.input-form-section .btn-neon-submit {
    animation-delay: 0.5s !important;
}

.social-group-wrapper .separator {
    animation-delay: 0.58s !important;
}

.social-group-wrapper .social-login-container {
    animation-delay: 0.65s !important;
}

.social-group-wrapper .account-switch-wrapper {
    animation-delay: 0.72s !important;
}

@keyframes slideInStart {
    0% {
        opacity: 0;
        transform: translate3d(-60px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

[dir="rtl"] @keyframes slideInStart {
    0% {
        opacity: 0;
        transform: translate3d(60px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInEnd {
    0% {
        opacity: 0;
        transform: translate3d(60px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

[dir="rtl"] @keyframes slideInEnd {
    0% {
        opacity: 0;
        transform: translate3d(-60px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 45px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
