@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

.logo {
    font-size: 60px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 20px;
}

input[type="password"] {
    width: 80%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="password"]:focus {
    border-color: #6a11cb;
}

button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Tajawal', sans-serif;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: bold;
}

/* Portal Section */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.portal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-btn:hover {
    transform: scale(1.05);
}

.btn-science {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-islamic {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    box-shadow: 0 4px 15px rgba(242, 153, 74, 0.3);
}

.icon {
    font-size: 32px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}
