@import url('responsive-global.css');

/**
 * Jakarta Islamic School - Portal & Login Stylesheet
 */

body.portal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 15% 20%, #f8fafc 0%, #e0e7ff 40%, #f1f5f9 100%);
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Background Ambient Orbs */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}
.orb-1 {
    width: 380px;
    height: 380px;
    background: rgba(79, 70, 229, 0.18);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(37, 99, 235, 0.12);
    bottom: -120px;
    right: -100px;
}

/* Main Container Card */
.portal-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 590px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Left: Form Login Section */
.portal-login-side {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    background: var(--glass-bg);
}

.portal-brand {
    text-align: center;
    margin-bottom: 22px;
}
.portal-brand-logo {
    width: 64px;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.15));
    transition: transform var(--transition-normal);
}
.portal-brand-logo:hover {
    transform: scale(1.05);
}
.portal-brand h1 {
    font-size: 1.15rem;
    color: var(--jisc-dark);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-brand-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--jisc-primary);
    background: var(--jisc-primary-soft);
    border: 1px solid var(--jisc-red-border);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Custom Alert */
.portal-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Divider Menu */
.portal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0 12px;
    color: var(--jisc-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.portal-divider::before,
.portal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--jisc-border);
}
.portal-divider span {
    padding: 0 10px;
}

/* Secondary Action Links */
.btn-student-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    margin-bottom: 8px;
}
.btn-student-login:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-student-public {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}
.btn-student-public:hover {
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

/* Live Stats Bar */
.portal-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 18px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--jisc-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.portal-stat-node {
    display: flex;
    align-items: center;
    gap: 10px;
}
.portal-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.stat-visitors .portal-stat-icon {
    background: var(--jisc-primary-soft);
    color: var(--jisc-primary);
}
.stat-active .portal-stat-icon {
    background: var(--jisc-green-soft);
    color: var(--jisc-green);
}
.portal-stat-content span {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--jisc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.portal-stat-content strong {
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--jisc-dark);
}
.stat-divider {
    width: 1px;
    height: 28px;
    background: var(--jisc-border);
}

/* Right: Visual Agenda Slider Side */
.portal-slider-side {
    flex: 0.9;
    background: linear-gradient(135deg, var(--jisc-primary) 0%, var(--jisc-primary-dark) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.portal-slider-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 70%);
    pointer-events: none;
}
.portal-slider-header {
    text-align: center;
    margin-bottom: 18px;
    z-index: 2;
}
.portal-slider-header h2 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.portal-slider-frame {
    width: 100%;
    max-width: 310px;
    height: 410px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}
.portal-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.02);
}
.portal-slide-img.active {
    opacity: 1;
    transform: scale(1);
}

/* Slider Controls / Dots */
.portal-slider-dots {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    z-index: 2;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}
.slider-dot.active {
    width: 22px;
    border-radius: 10px;
    background: #ffffff;
}

/* Responsive */
@media (max-width: 860px) {
    .portal-card {
        flex-direction: column;
        max-width: 440px;
    }
    .portal-slider-side {
        display: none;
    }
    .portal-login-side {
        padding: 30px 24px;
    }
}
