body {
    margin: 0;
    min-height: 100vh;
    background: url('../bg_sg.png') center / cover fixed no-repeat;
}

.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: 50px;
    font-size: 24px;
}
.register-form {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(249, 249, 249, 0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.register-form form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
    align-items: start;
}

.register-form .form-field {
    min-width: 0;
}

.form-wide {
    grid-column: 1 / -1;
}

.register-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="date"],
.register-form textarea,
.register-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.register-form input[type="submit"] {
    width: 220px;
    grid-column: 1 / -1;
    justify-self: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.register-form input[type="submit"]:hover {
    background-color: #555;
}

.privacy-notice {
    margin: 8px 0 4px;
    padding: 18px 20px;
    border: 1px solid #cfd5df;
    border-left: 4px solid #3541e9;
    border-radius: 6px;
    background: #f5f7fb;
    color: #333;
    line-height: 1.55;
}

.privacy-notice h3 {
    margin: 0 0 10px;
    font-size: 17px;
    text-transform: uppercase;
}

.privacy-notice p {
    margin: 0 0 10px;
    font-size: 13px;
}

.privacy-notice p:last-of-type {
    margin-bottom: 16px;
}

.privacy-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1.45;
    cursor: pointer;
}

.privacy-consent input {
    width: 18px !important;
    height: 18px;
    flex: 0 0 auto;
    margin: 2px 0 0 !important;
    accent-color: #3541e9;
}

@media (max-width: 900px) {
    .register-form form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@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;
    }

    .register-form {
        max-width: 100%;
        margin: 20px 12px;
        padding: 18px 16px;
    }

    .register-form form {
        grid-template-columns: 1fr;
    }

    .form-wide {
        grid-column: auto;
    }

    .register-form input[type="text"],
    .register-form input[type="email"],
    .register-form input[type="password"],
    .register-form input[type="date"],
    .register-form textarea,
    .register-form select {
        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;
}