/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* WRAPPER FOR SIDEBAR + MAIN */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #12721c;
    color: white;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #0f5c18;
    transition: background 0.3s;
}

.sidebar a:hover {
    background-color: #0c4713;
}

.main {
    flex-grow: 1;
    padding: 30px;
    background-color: #f9f9f9;
}

/* CONTAINER (Login/Register) */
.container {
    display: flex;
    height: 100vh;
}

.left-panel {
    width: 50%;
    background-color: #12721c;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.left-panel h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.left-panel p {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.right-panel {
    width: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow-y: auto;
}

.right-panel h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1c1c1c;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="date"] {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    width: 100%;
}

form input:focus {
    outline: none;
    border-color: #12721c;
    box-shadow: 0 0 5px rgba(18, 114, 28, 0.5);
}

/* BUTTONS */
button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

button[type="submit"] {
    background-color: #12721c;
    color: white;
}

button[type="button"] {
    background-color: white;
    color: #12721c;
    border: 1px solid #12721c;
}

/* FOOTER TEXT + LINKS */
.right-panel p {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.right-panel a {
    color: #12721c;
    text-decoration: none;
}

.right-panel a:hover {
    text-decoration: underline;
}

/* ✅ RESPONSIVE STYLES FOR TABLETS & MOBILE */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }

    .left-panel h1 {
        font-size: 24px;
    }

    .right-panel h2 {
        font-size: 22px;
    }

    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .sidebar a {
        margin: 8px;
        width: 90%;
    }

    .main {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .left-panel h1 {
        font-size: 22px;
    }

    .left-panel p {
        font-size: 14px;
    }

    .right-panel h2 {
        font-size: 20px;
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="email"],
    form input[type="date"],
    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 20px 15px;
    }

    .right-panel {
        padding: 20px 15px;
    }

    .left-panel h1 {
        font-size: 20px;
    }

    .left-panel p {
        font-size: 13px;
    }

    .right-panel h2 {
        font-size: 18px;
    }

    form input,
    button {
        font-size: 13px;
    }

    .sidebar a {
        font-size: 14px;
        padding: 8px;
    }
}
