/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* COMMON */

.container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */

.header {
    background: #111;
    color: white;

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: white;
    font-size: 15px;
}

/* HERO */

.hero {
    min-height: 70vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(0,0,0,0.5),
            rgba(0,0,0,0.5)
        ),
        url("../img/bg.jpg");

    background-size: cover;
    background-position: center;

    color: white;

    padding: 40px 20px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

button {
    border: none;

    padding: 14px 28px;

    border-radius: 8px;

    background: royalblue;
    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    opacity: 0.8;
}

/* CARD SECTION */

.card-section {
    padding: 80px 0;
}

.card-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 24px;
}

.card {
    background: white;

    border-radius: 16px;

    padding: 40px 30px;

    box-shadow:
        0 5px 15px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 15px;
}

/* FOOTER */

.footer {
    background: #111;
    color: white;

    padding: 40px 0;

    text-align: center;
}

/* TABLET */

@media (max-width: 1024px) {

    .hero h1 {
        font-size: 42px;
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .header-inner {

        flex-direction: column;

        height: auto;

        padding: 20px 0;

        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .card {
        padding: 30px 20px;
    }

}

/* LOGIN PAGE */
.login-container {
    min-height: calc(100vh - 140px); /* Adjust based on header/footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-card h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #111;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: royalblue;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.login-form button {
    width: 100%;
    margin-top: 10px;
}

.login-error {
    background: #fff0f0;
    color: #d00;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #d00;
}