/* ===========================================
   Home / Landing Page
   =========================================== */

.main-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-image) center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.welcome-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.school-info-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.school-info-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.school-logo {
    max-height: 90px;
    max-width: 180px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.08) rotate(1deg);
}

.school-name {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.school-subtitle {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 2rem;
    text-align: center;
}

.panel-header h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.panel-body {
    padding: 2rem;
}

.login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: transparent;
    text-decoration: none;
}

.login-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.login-card:hover .icon {
    transform: scale(1.15);
}

.login-card .label {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.login-card .desc {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
    text-align: center;
}

.login-card.card-admin { border-color: #667eea; }
.login-card.card-admin:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}
.login-card.card-admin:hover .label,
.login-card.card-admin:hover .desc { color: white; }

.login-card.card-guru { border-color: #38a169; }
.login-card.card-guru:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    border-color: #38a169;
}
.login-card.card-guru:hover .label,
.login-card.card-guru:hover .desc { color: white; }

.login-card.card-siswa { border-color: #d69e2e; }
.login-card.card-siswa:hover {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    border-color: #d69e2e;
}
.login-card.card-siswa:hover .label,
.login-card.card-siswa:hover .desc { color: white; }

.copyright-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1rem;
}

.copyright-section small { color: #718096 !important; font-weight: 500; }

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