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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #c8e6c9;
    color: #2e3e2f;
    min-height: 100vh;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.logo {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #1b5e20;
}

.login-card h2 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.login-card p {
    margin-bottom: 25px;
    color: #1b5e20;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #81c784;
    background-color: #f1f8e9;
}

.login-card button {
    width: 100%;
    padding: 12px;
    background-color: #43a047;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.login-card button:hover {
    background-color: #2e7d32;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 10px;
}

.wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2e7d32;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 1.8rem;
}

.logout-btn {
    background: #1b5e20;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: #145214;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1b5e20;
}

.dashboard-card {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 40px;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

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

.card {
    background-color: #dcedc8;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    color: #1b5e20;
    font-weight: 500;
    height: 120px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #c5e1a5;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1b5e20;
}

.success-message {
    color: #2e7d32;
    margin-bottom: 10px;
    font-weight: 500;
}

.auth-switch {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
}

.auth-switch a:hover {
    text-decoration: underline;
    color: #1b5e20;
}

@media screen and (max-width: 600px) {
    .card {
        height: 100px;
        font-size: 0.9rem;
    }

    .login-card {
        padding: 30px 20px;
    }
}