/* =============================================
   Clinic System – Login Page Styles
   Font: system Kurdish/Arabic fonts + Google
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
    background: #2b2b2b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

/* ---- Wrapper ---- */
.login-wrapper {
    display: flex;
    width: 860px;
    min-height: 560px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Left Panel ---- */
.login-left {
    width: 48%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.clinic-logo {
    max-width: 90%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 20px rgba(200, 160, 60, 0.35));
}

/* Fallback if logo missing */
.logo-fallback {
    text-align: center;
    color: #c8a03c;
}

.logo-fallback h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d4af37;
}

.logo-fallback p {
    font-size: 13px;
    color: #9a9a9a;
    margin-top: 8px;
    font-style: italic;
}

/* ---- Right Panel ---- */
.login-right {
    width: 52%;
    background: #3d3d3d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 45px;
    position: relative;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    background: #e53935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 0;
}

.close-btn:hover {
    background: #c62828;
}

/* Form Container */
.login-form-container {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

/* Shield Icon */
.shield-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
    color: #b8b8b8;
}

.shield-icon .fa-shield-halved {
    font-size: 80px;
    color: #b0b0b0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.shield-icon .inner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    font-size: 34px;
    color: #7a7a7a;
}

/* Title */
.login-title {
    font-size: 22px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Alert */
.alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    margin-bottom: 18px;
    text-align: right;
}

.alert-error {
    background: rgba(229, 57, 53, 0.18);
    border: 1px solid rgba(229, 57, 53, 0.45);
    color: #ff8a80;
}

.alert-error i {
    margin-left: 6px;
}

/* Form */
.login-form {
    text-align: right;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #c8c8c8;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #5c8ee8;
    padding: 8px 4px;
    font-size: 15px;
    color: #f0f0f0;
    outline: none;
    transition: border-color 0.3s;
    direction: ltr;
    text-align: left;
    font-family: inherit;
}

.form-input:focus {
    border-bottom-color: #82b1ff;
}

.form-input::placeholder {
    color: #666;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-left: 32px;
}

.toggle-password {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 14px;
    transition: color 0.2s;
    user-select: none;
}

.toggle-password:hover {
    color: #bbb;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px;
    background: transparent;
    border: 2px solid #c8c8c8;
    color: #e0e0e0;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.login-btn:hover {
    background: #5c8ee8;
    border-color: #5c8ee8;
    color: #fff;
}

.login-btn:active {
    background: #3d6fd4;
    border-color: #3d6fd4;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .login-wrapper {
        flex-direction: column;
        width: 95vw;
        min-height: auto;
    }

    .login-left {
        width: 100%;
        padding: 30px 20px;
        min-height: 200px;
    }

    .clinic-logo {
        max-height: 180px;
    }

    .login-right {
        width: 100%;
        padding: 40px 24px 50px;
    }

    .close-btn {
        top: 0;
        left: 0;
    }
}
