/* ---------------- GLOBAL ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: seashell;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---------------- LOGIN PAGE ---------------- */
main {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Card */
.login-card {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 80%;
    height: 80%;
    background-color: rgb(12, 25, 35);
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Left Image Section */
.login-left {
    position: relative;
    height: 100%;
}

.login-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out;
}

/* Right Section */
.login-right {
    /* display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly; */
    display: grid;
    grid-template-rows: 40% 60%;
}

/* Logo Header */
.logo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.logo-header img {
    margin-bottom: 10px;
    max-height: 80px;
    width: auto;
}

.logo-header h2 {
    font-size: 14px;
    letter-spacing: 1px;
}

/* Login/Register Container */
.login-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* height: 100%; */
    align-items: center;
    gap: 10px;
}

/* Inputs */
input {
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    outline: none;
    font-size: 14px;
}

input:focus {
    box-shadow: 0 0 5px #007bff;
}

/* Buttons */
button {
    width: 150px;
    height: 38px;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

button:hover {
    background: gray;
}

/* Toggle Text */
.login-input p {
    margin-top: 10px;
}

/* Error & Success Messages */
p[style*="red"], .error {
    color: red; 
    font-size: 14px;
    margin-bottom: 10px;
}

p[style*="green"], .success {
    color: green;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ---------------- EVENTS PAGE ---------------- */
.container {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 90vw;
    height: 60vh; 
    margin: 40px auto;
    border-radius: 15px;
    border: 5px solid #00282A;
    padding: 1%;
    font-family: Arial, sans-serif;
    background-color: white;
    overflow: hidden; 
}

.c-left {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-left img {
    width: 100%;
    height: 100%;
    object-fit: fill;   
    border-radius: 15px;
}

.c-right {
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: flex-start;
    height: 100%;
    overflow-y: auto; 
}

.c-right h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    color: #00282A;
}

.event-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.c-right p {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile Image - Hidden by default on desktop */
.mobile-img {
    display: none;
}

/* ---------------- ADMIN DASHBOARD ---------------- */
/* Centered Layout Wrapper */
.dashboard-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.dashboard-container {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.dashboard-header {
    margin-bottom: 25px;
    color: #333;
}

.dashboard-header h2 {
    margin: 0;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.form-control, select.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box; 
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: white; 
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}

textarea.form-control {
    resize: none;
    height: 100px;
}

.btn-submit {
    background-color: rgb(4, 56, 58);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: rgb(12, 25, 35);
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.message.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.message.success {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.nav-links {
    margin-top: 20px;
    font-size: 14px;
}

.nav-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #333;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
    /* Login Page */
    .login-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 500px;
        padding-bottom: 20px;
    }

    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 10px;
        width: 100%;
    }
    
    .logo-header img {
        width: 60px; 
    }

    /* Events Page */
    .container {
        display: flex !important;       
        flex-direction: column !important; 
        grid-template-columns: none !important; 
        height: auto !important;
        width: 90vw;
        padding: 20px;
        min-height: auto;
    }
    
    .c-left {
        display: none; 
    }

    .mobile-img {
        display: block; 
        width: 100%;
        height: 250px; 
        margin: 15px 0;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0; 
    }

    .mobile-img img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
    
    .c-right {
        padding: 0;
        overflow: visible;
        height: auto; 
        display: block;
    }
    
    .c-right h2 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    /* Admin Dashboard */
    .dashboard-container {
        padding: 20px;
        width: 90%;
    }
}
