body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        135deg,
        #d32f2f,
        #444
    );

    font-family: Arial, sans-serif;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: white;

    padding: 40px;

    border-radius: 15px;

    width: 350px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-card h1 {
    margin-bottom: 10px;
}

.login-card p {
    margin-bottom: 20px;
}

.login-card input {
    width: 100%;

    padding: 12px;

    margin-bottom: 15px;

    border: 1px solid #ccc;

    border-radius: 8px;
}

.login-card button {
    width: 100%;

    padding: 12px;

    background: #d32f2f;

    color: white;

    border: none;

    border-radius: 8px;

    cursor: pointer;
}

.login-card button:hover {
    background: #a82424;
}

#message {
    margin-top: 15px;
    font-weight: bold;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.dashboard-container {
    width: 90%;
    max-width: 1200px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;
}

.dashboard-card {
    background: white;

    padding: 30px;

    border-radius: 15px;

    text-align: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.dashboard-card h2 {
    margin-bottom: 15px;
}

.dashboard-card p {
    margin-bottom: 20px;
}

.dashboard-card a {
    display: inline-block;

    padding: 12px 20px;

    background: #d32f2f;

    color: white;

    text-decoration: none;

    border-radius: 8px;
}

.dashboard-card a:hover {
    background: #a82424;
}

.logout-btn{
    margin-top:15px;
    padding:10px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#d32f2f;
    color:white;
    font-weight:600;
}

.logout-btn:hover{
    opacity:.9;
}

.gallery-controls{
    display:flex;
    gap:15px;
    padding:20px;
    flex-wrap:wrap;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
    padding:20px;
}

.gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    cursor:pointer;
    transition:.3s;
}

.gallery-card:hover{
    transform:scale(1.03);
}

.gallery-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
}

.gallery-card.selected{
    border:5px solid #d32f2f;
}

.gallery-card.selected::after{
    content:"✓";
    position:absolute;
    top:10px;
    right:10px;
    background:#d32f2f;
    color:white;
    width:35px;
    height:35px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
}
.dashboard-footer{
    margin-top:50px;
    text-align:center;
}

.dashboard-footer .logout-btn{
    display:inline-block;
    padding:14px 40px;
    border-radius:12px;
    background:#d32f2f;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.dashboard-footer .logout-btn:hover{
    transform:translateY(-3px);
}