/* Global Styles */
:root {
    --primary-color: #1a56a7;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #fff;
    --error-color: #dc3545;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 80px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: #134280;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('assets/bg-image.jpg') no-repeat center center/cover;
}

.welcome-message h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.principal-message {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.principal-message p {
    margin-bottom: 15px;
}

.principal-name {
    font-weight: 600;
    text-align: right;
    margin-top: 20px;
}

/* About Section */
.about {
    padding: 50px 0;
    background-color: var(--light-text);
}

.about h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    flex: 1;
    min-width: 300px;
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* CTA Section */
.cta {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #222;
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* Login Page Styles */
.login-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-box {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--light-text);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.error-message {
    color: var(--error-color);
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Result Page Styles */
.result-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.result-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-text);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-box h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.student-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    width: 150px;
}

.value {
    flex: 1;
}

.status .value {
    font-weight: 700;
    font-size: 1.1rem;
}

.additional-message {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    
    .feature {
        min-width: 100%;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .login-box, .result-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero, .about, .cta {
        padding: 40px 0;
    }
}