* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18) 0, transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(8, 145, 178, 0.12) 0, transparent 40%),
        linear-gradient(160deg, #f0fdfa 0%, #ecfeff 45%, #f8fafc 100%);
    color: #1f2933;
}

/* מעטפת כללית */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;      /* מרכז אנכית */
    justify-content: center;  /* מרכז אופקית */
    padding: 32px 16px;
}

/* פס עליון */
.top-bar {
    height: 56px;
    background-color: #ffffffcc;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.top-title {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.top-bar-left .top-link {
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
}

.top-bar-left .top-link:hover {
    text-decoration: underline;
}

/* אזור ההתחברות הכללי */
.login-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 56px);
}

/* פס צד – כמו תפריט בקרה */
.side-panel {
    background: linear-gradient(180deg, #0f172a, #111827);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    border-left: 1px solid #111827;
}

.side-logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.side-menu {
    list-style: none;
    flex: 1;
}

.side-menu li {
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.side-menu li.active {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.side-menu li span {
    display: inline-block;
}

.side-footer {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* כרטיס ההתחברות */
.login-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card-inner {
    width: 100%;
    max-width: 900px;
    background: #ffffffee;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

/* לוגו מותג */
.brand-block {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.login-brand-mobile {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #134e4a, #0e7490);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
}

.brand-logo--compact {
    margin: 0 auto;
    max-width: 140px;
}

/* צד מידע */
.login-info {
    padding: 28px 32px;
    background: linear-gradient(145deg, #115e59 0%, #0e7490 50%, #0891b2 100%);
    color: #ecfeff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-info h1 {
    font-size: 26px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.login-info p,
.login-info .login-highlights,
.login-info .login-badge {
    position: relative;
    z-index: 1;
}

.login-info p {
    font-size: 14px;
    color: #ccfbf1;
    margin-bottom: 18px;
}

.login-highlights {
    list-style: none;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.login-badge {
    font-size: 13px;
    color: #99f6e4;
}

.badge-success {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: #16a34a;
    color: #f0fdf4;
    font-size: 12px;
    margin-right: 4px;
}

/* אורות רקע דקורטיביים */
.login-info::before,
.login-info::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(153, 246, 228, 0.45), rgba(8, 145, 178, 0));
    opacity: 0.8;
    pointer-events: none;
}
.login-info::before {
    width: 190px;
    height: 190px;
    top: -40px;
    left: -40px;
}
.login-info::after {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: -60px;
}

/* צד טופס */
.login-form-wrapper {
    padding: 28px 32px;
}

.login-form-wrapper h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.login-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 14px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #0891b2;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 18px;
    gap: 10px;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.forgot-link {
    font-size: 13px;
    color: #0e7490;
    text-decoration: none;
}

.auth-switch a {
    color: #0e7490;
    font-weight: 500;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* כפתור */
.btn-primary {
    width: 100%;
    padding: 11px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(8, 145, 178, 0.4);
    transition: transform 0.07s ease, box-shadow 0.07s ease, filter 0.1s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 13px 28px rgba(8, 145, 178, 0.5);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.35);
}

.auth-switch {
    margin-top: 14px;   /* אפשר לשנות ל-20px אם תרצה עוד רווח */
}


/* רספונסיביות */
@media (max-width: 900px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .side-panel {
        display: none;
    }

    .login-card-inner {
        grid-template-columns: 1fr;
    }

    .login-info {
        display: none;
    }

    .login-brand-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0 16px;
    }

    .login-card {
        padding: 20px 16px;
    }

    .login-form-wrapper {
        padding: 22px 20px;
    }
}
