/* login page*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #e8eee6;
    color: #112b18;
    font-family: "Inter", Arial, sans-serif;
}

.page {
    width: 1180px;
    min-height: 100vh;
    margin: 28px auto;
    padding: 42px 62px 55px;
    background:
        linear-gradient(rgba(248, 250, 244, 0.88), rgba(248, 250, 244, 0.88)),
        url("/static/bushland.jpg");
    background-size: cover;
    background-position: center bottom;
    border: 1px solid #c7cfc2;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 270px;
    height: 220px;
    background: url("/static/leaf.png") no-repeat right top;
    background-size: contain;
    opacity: 0.35;
    pointer-events: none;
}

.header {
    display: flex;
    align-items: flex-start;
    gap: 42px;
    position: relative;
    z-index: 2;
}

.logo-box img {
    width: 200px;   
    height: auto;
    display: block;
}

.header-text h1 {
    margin: 0;
    font-family: "MingLiU-ExtB", "PMingLiU", serif;
    font-size: 30px;
    color: #103b20;
    font-weight: bold;
}

.header-text p {
    font-size: 17px;
    color: #6d6d67;
}

.header-text h2 {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #376f3d;
}

.header-divider {
    height: 1px;
    background: #c4cbbf;
    margin: 10px 0 45px;
    position: relative;
    z-index: 2;
}

.content {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    position: relative;
    z-index: 2;
    flex: 1;
    padding-bottom: 20px;
}

.left-panel {
    width: 50%;
    padding-left: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.title-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eef4eb;
    border: 1px solid #cddbc8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.left-panel h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: #12351d;
}

.small-line {
    width: 35px;
    height: 3px;
    background: #477a38;
    margin-top: 14px;
    border-radius: 3px;
}

.objectives h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    margin: 0 0 0px;
    color: #12351d;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #d5dbd1;
    max-width: 460px;
}

.objective-item span {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef5ec;
    border: 2px solid #c2d7b9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f8a46;
    font-size: 23px;
}

.objective-item p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #202720;
}

.contact-bubble {
    display: inline-block;
    margin-top: 44px;
    background: #174c27;
    padding: 15px 28px;
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.contact-bubble:hover {
    background: #0d2f17
}

.contact-bubble a {
    color: white;
    text-decoration: none;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 20px;
}

.toggle-password {
    cursor: pointer;
    padding: 0 18px;
    color: #3f7a39;
    font-weight: 700;
    font-size: 14px;
    user-select: none;
}

.login-box {
    width: 430px;
    margin-left: auto;
    margin-bottom: 28px;
    padding: 29px;
    border-radius: 12px;
    background:
        linear-gradient(rgba(18, 58, 28, 0.94), rgba(18, 58, 28, 0.94)),
        url("/static/leaf.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
}

.login-box input {
    width: 100%;
    height: 51px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    margin-bottom: 12px;
    background: #f9faf8;
}

.password-area {
    display: flex;
    align-items: center;
    background: #f9faf8;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.password-area input {
    margin: 0;
    flex: 1;
    background: transparent;
}

.password-area span {
    padding: 0 18px;
    color: #3f7a39;
    font-weight: 700;
    font-size: 14px;
}

.small-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.small-links a {
    color: #f2f5ee;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.link-divider {
    width: 1px;
    height: 25px;
    background: rgba(255,255,255,0.25);
}

.login-box button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #f2f4ef;
    color: #123b20;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}

.login-box button:hover {
    background: #e3eadf;
}

.left-image img {
    width: 300px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.top-image img {
    width: 250px;
    border-radius: 12px;
    display: block;
}

.text-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #202720;
}


.top-image,
.text-card {
    width: 430px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.right-panel .flora-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.flora-container {
    width: 100%;
    display: flex;
    justify-content: center;   /* THIS centres the whole block */
    margin-top: 15px;
}

.flora-block {
    display: flex;
    flex-direction: row;   /* 👈 THIS is the key */
    gap: 18px;
    margin-top: 5px;
    width: 430px;          /* keeps alignment with login box */
    align-items: flex-start;

    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #d6ddd2;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    backdrop-filter: blur(4px);
}

.top-image img {
    width: 220px;
    height: 163px;
    display: block;
}

.text-card {
    width: 100%;
}

/* LEFT column = login */
.login-box {
    width: 430px;
    margin: 0;
}

.text-card li {
    margin-bottom: 14px;
}

.text-card li::marker {
    color: #174c27;
}
.footer {
    border-top: 1px solid #c9d0c4;
    margin-top: 40px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #102514;
    position: relative;
    z-index: 2;
}

.footer p {
    margin: 0;
}

/* Register Page */


.register-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* 返回按钮所在行 */
.back-row {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}


/* 注册卡片 */
.register-card {
    width: 470px;
    padding: 32px;
    border-radius: 14px;

    background:
        linear-gradient(rgba(18, 58, 28, 0.95), rgba(18, 58, 28, 0.95)),
        url("/static/leaf.png");

    background-size: cover;
    background-position: center;

    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
    color: white;
}

/* 标题 */
.register-card h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    text-align: center;
}

/* 副标题 */
.register-subtitle {
    margin: 8px 0 24px;
    text-align: center;
    font-size: 14px;
    color: #dcebdd;
}

/* 表单 */
.register-card form {
    display: flex;
    flex-direction: column;
}

/* 标签 */
.register-card label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* 输入框 */
.register-card input,
.register-card select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 14px;

    border: none;
    border-radius: 8px;

    background: #f9faf8;
    color: #123b20;

    font-size: 15px;
}

/* placeholder */
.register-card input::placeholder {
    color: #8a9388;
}

/* 条款 */
.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 18px;
    font-size: 14px;
}

.terms input {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* 按钮 */
.register-btn {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 8px;

    background: #f2f4ef;
    color: #123b20;

    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 18px;

    cursor: pointer;
}

.register-btn:hover {
    background: #e3eadf;
}

/* 登录提示 */
.login-link {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.login-link a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}

/* Contact page */
.contact-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.contact-card {
    width: 470px;
    padding: 32px;
    border-radius: 14px;

    background:
        linear-gradient(rgba(18, 58, 28, 0.95), rgba(18, 58, 28, 0.95)),
        url("/static/leaf.png");

    background-size: cover;
    background-position: center;

    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
    color: white;
}

.contact-card h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    text-align: center;
}

.contact-subtitle {
    margin: 8px 0 24px;
    text-align: center;
    font-size: 14px;
    color: #dcebdd;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #eef5ec;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 14px;

    border: none;
    border-radius: 8px;

    background: #f9faf8;
    color: #123b20;

    font-size: 15px;
    font-family: "Inter", Arial, sans-serif;
    outline: none;
}

.contact-form input {
    height: 48px;
}

.contact-form textarea {
    height: 130px;
    padding-top: 14px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8a9388;
}

.contact-form button {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 8px;

    background: #f2f4ef;
    color: #123b20;

    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 18px;

    cursor: pointer;
}

.contact-form button:hover {
    background: #e3eadf;
}
/* Back按钮（在按钮下面） */

.contact-back {

    display: block;

    text-align: center;

    margin-top: 14px;

    padding: 8px 14px;

    border-radius: 8px;

    border: 1px solid rgba(255,255,255,0.4);

    background: transparent;

    color: #eef5ec;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;

}

.contact-back:hover {

    background: #174c27;

    color: white;}
    /* Forgot 页面 */
.forgot-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.forgot-card {
    width: 470px;
    padding: 32px;
    border-radius: 14px;

    background:
        linear-gradient(rgba(18, 58, 28, 0.95), rgba(18, 58, 28, 0.95)),
        url("/static/leaf.png");

    background-size: cover;
    background-position: center;

    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
    color: white;
}

.forgot-card h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    text-align: center;
}

.forgot-subtitle {
    margin: 8px 0 24px;
    text-align: center;
    font-size: 14px;
    color: #dcebdd;
}

.forgot-card form {
    display: flex;
    flex-direction: column;
}

.forgot-card label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.forgot-card input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 14px;

    border: none;
    border-radius: 8px;

    background: #f9faf8;
    color: #123b20;

    font-size: 15px;
}

.error-message {
    color: #ffb3b3;
    font-size: 13px;
    margin-bottom: 10px;
}

.forgot-card button {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 8px;

    background: #f2f4ef;
    color: #123b20;

    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 18px;

    cursor: pointer;
}

.forgot-card button:hover {
    background: #e3eadf;
}

/* Back按钮 */
.forgot-back {
    display: block;
    text-align: center;
    margin-top: 14px;

    padding: 8px 14px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);

    background: transparent;
    color: #eef5ec;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-back:hover {
    background: #174c27;
    color: white;
}

/* ===== STYLES FOR ONCE THE USER SUCCESFFULY LOGS IN ARE BELOW ===== */

.app-header {
    margin-bottom: 20px;
}

.app-header-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.app-nav {
    background-color: #40623f;
    padding: 14px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title {
    margin: 0;
    color: #40623f;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 35px;
    font-weight: 700;
}

.app-title h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0;
}

.h2-title {
    margin: 0;
    color: #0ba84a;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.app-footer {
    margin-top: 50px;
    padding: 18px 24px;

    background-color: #dcebdd; /* light green */
    border-top: 1px solid #c7d3c2;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 14px;
    color: #123b20;
}

.app-footer p {
    margin: 0;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-btn {
    background-color: #0ba84a;
    color: white;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
}

.nav-btn:hover {
    background-color: #098f3f;
}

.home-icon {
    width: 20px;
    height: 20px;
}

/* Footer layout */
.app-footer {
    margin-top: 40px;
    padding: 18px 24px;

    background-color: #dcebdd;
    border-top: 1px solid #c7d3c2;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left text */
.footer-left p {
    margin: 0;
    font-size: 14px;
    color: #123b20;
}

/* Logout button */
.logout-btn {
    background-color: #e67e22; /* orange */
    color: white;

    padding: 10px 18px;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    transition: 0.2s;
}

/* Hover effect */
.logout-btn:hover {
    background-color: #cf711f;
}

/* ===== QUICK LINKS PANEL ===== */

.quick-links-panel {
    width: 650px;   
    height: fit-content; 

    background: rgba(250, 251, 247, 0.95);
    border: 1px solid #d6ddd2;
    border-radius: 12px;

    padding: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Title */
.quick-links-panel h3 {
    margin: 0 0 15px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    color: #40623f;
}

/* Button container */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.quick-btn {
    display: block;
    text-align: center;

    padding: 12px;
    border-radius: 8px;

    background-color: #40623f;
    color: white;

    text-decoration: none;
    font-weight: 600;

    transition: 0.2s;
}

/* Hover */
.quick-btn:hover {
    background-color: #2f4d2e;
}

.page-divider {
    height: 1px;
    background: #f6f9f2;
    margin: 10px 0 10px;
    position: relative;
    z-index: 2;
}

.admin-panel {
    height: fit-content; 

    background: rgba(250, 251, 247, 0.95);
    border: 1px solid #d6ddd2;
    border-radius: 12px;

    padding: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.admin-links {
    display: flex;
    gap: 12px;
}

/* Dropdown wrapper */
.nav-dropdown {
    position: relative;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: white;
    min-width: 180px;

    border-radius: 6px;
    overflow: hidden;
    z-index: 100;
}

/* Links inside dropdown */
.dropdown-content a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #123b20;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #eef5ec;
}

/* Show on hover */
.nav-dropdown:hover .dropdown-content {
    display: block;
}

.home-divider {
    height: 1px;
    background: #f6f9f2;
    margin: 20px 0 85px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* ===== STATS PANEL (dashboard style) ===== */

.stats-panel {
    width: 650px;
    height: fit-content;

    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #d6ddd2;
    border-radius: 14px;

    padding: 22px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    backdrop-filter: blur(4px);
}

/* Title */
.stats-panel h3 {
    margin: 0 0 18px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    color: #40623f;
}

/* container */
.stats-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* each stat block (NOT a button anymore) */
.stats-card {
    padding: 5px 10px;

    border-radius: 12px;
    border: 1px solid #e0e7dc;

    background: linear-gradient(135deg, #f7faf6, #eef5ec);
}

/* BIG number */
.stats-number {
    font-size: 28px;
    font-weight: 700;
    color: #2f4d2e;

    font-family: "Playfair Display", Georgia, serif;
}

/* label text */
.stats-label {
    font-size: 14px;
    color: #5a6b5a;
}

/* highlight date differently */
.stats-date {
    color: #40623f;
    font-weight: 600;
} background-color: #2f4d2e;



