.topbar{
    background-color: #333;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}
.visit-link {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    font-size: 18px;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #444;
}
.welcome {
    text-align: center;
    margin-top: 42px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 2.6vw, 3rem);
    font-weight: 700;
    letter-spacing: normal;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.login-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 26px 28px 22px;
    border: 1px solid #dfe3ea;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

.login-panel-form {
    width: 100%;
}

.field-group {
    margin-bottom: 16px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.field-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
}

.field-group input:focus {
    border-color: #111827;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0 18px;
}

.remember-me-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1f2937;
}

.forgot-link {
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin: 10px 0 18px;
    padding: 4px 0;
}

.register-link-text {
    margin-right: 4px;
    color: #111827;
    font-size: 15px;
}

.register-link a {
    color: #1d4ed8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #2f2f2f 0%, #1f1f1f 100%);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.16);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #b71c1c;
    background-color: #fdecea;
    border: 1px solid #e57373;
    padding: 10px 14px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    color: #1b5e20;
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    padding: 10px 14px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.reset-form {
    width: 100%;
}

.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.field-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c7cdd8;
    border-radius: 8px;
    background-color: #fff;
    color: #1f2937;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.reset-button {
    display: block;
    width: 100%;
    padding: 12px 18px;
    margin-top: 8px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reset-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.reset-footer {
    margin-top: 18px;
    padding-top: 6px;
}

.reset-footer a {
    color: #1d4ed8;
    font-weight: 600;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(rgba(240, 243, 247, 0.76), rgba(240, 243, 247, 0.76)), url('../bg_sg.png') center / cover fixed no-repeat;
    color: #111827;
}

img, svg, video, canvas {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font: inherit;
}

@media (max-width: 768px) {
    .topbar {
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .visit-link,
    .dropbtn {
        font-size: 16px;
    }

    .dropbtn {
        padding: 8px 12px;
    }

    .dropdown-content {
        min-width: 140px;
    }

    .login-form,
    .register-link {
        margin-left: 12px;
        margin-right: 12px;
    }

    .login-form {
        padding: 18px 16px;
    }

    .login-form input[type="text"],
    .login-form input[type="email"],
    .login-form input[type="password"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .topbar {
        justify-content: space-between;
    }

    .visit-link {
        margin-right: 0;
    }

    .dropdown-content a {
        font-size: 16px;
        padding: 10px 12px;
    }

    .welcome {
        font-size: 20px;
        margin-top: 30px;
    }
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Trebuchet MS", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
p,
label,
a,
button,
input,
select,
textarea {
    letter-spacing: 0;
}