* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overscroll-behavior: none;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-top: 100px;
    padding-bottom: 30px;
}

/* header styles */
.header-bar {
    background-color: #14367e;
    padding: 12px 15px;
    color: #ffffff;
    height: 100px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.main-text {
    font-weight: 600;
    font-size: 30px;
    white-space: nowrap;
}

.sub-text {
    font-size: 20px;
    opacity: 0.9;
    white-space: nowrap;
}

/* Register styles */
.register-container {
    background-color: #CFE5EC;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    margin: 20px;
}

.register-container h2 {
    margin-bottom: 20px;
    color: #14367e;
    font-size: 24px;
    text-align: center;
}

.register-form input,
.register-form select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    appearance: none;
    background-color: #fff;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.register-form input:focus,
.register-form select:focus {
    border-color: #1F7AA5;
    outline: none;
    box-shadow: 0 0 5px rgba(31, 122, 165, 0.3);
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #81aab5;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    padding: 12px 12px 12px 40px;
    width: 100%;
    box-sizing: border-box;
}

.select-wrapper select:invalid {
    color: rgb(110, 109, 109);
}

/* Dropdown icon for select */
.select-wrapper .dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #81aab5;
    cursor: pointer;
    font-size: 14px;
}

.register-form button {
    width: 100%;
    padding: 12px;
    background-color: #1F7AA5;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.register-form button:hover {
    background-color: #0d2852;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 40, 82, 0.2);
}

.register-form button:active {
    transform: translateY(0);
}

.login-link {
    margin-top: 18px;
    font-size: 14px;
    text-align: center;
    color: #555;
}

.login-link a {
    color: #14367e;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #0d2a63;
    text-decoration: underline;
}

/* =====================
   RESPONSIVE DESIGN
===================== */

@media (max-width: 1200px) {
    .header-bar {
        padding: 10px 12px;
        height: 90px;
    }

    .logo {
        height: 70px;
        width: 70px;
    }

    .main-text {
        font-size: 26px;
    }

    .sub-text {
        font-size: 18px;
    }

    .register-container {
        max-width: 400px;
        padding: 28px 23px;
    }

    .register-container h2 {
        font-size: 22px;
    }

    .register-form input,
    .register-form select {
        padding: 11px 11px 11px 36px;
        font-size: 14px;
    }

    .input-wrapper i {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .header-bar {
        padding: 8px 10px;
        height: 80px;
    }

    .header-left {
        gap: 10px;
    }

    .logo {
        height: 60px;
        width: 60px;
    }

    .main-text {
        font-size: 22px;
    }

    .sub-text {
        font-size: 16px;
    }

    .register-container {
        max-width: 380px;
        padding: 25px 20px;
    }

    .register-container h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .register-form input,
    .register-form select {
        padding: 11px 11px 11px 36px;
        margin: 8px 0;
        font-size: 14px;
    }

    .input-wrapper {
        margin-bottom: 12px;
    }

    .input-wrapper i {
        font-size: 14px;
    }

    .register-form button {
        padding: 11px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 85px;
        padding-bottom: 20px;
    }

    .header-bar {
        padding: 8px 8px;
        height: 75px;
    }

    .header-container {
        gap: 8px;
    }

    .header-left {
        gap: 8px;
    }

    .logo {
        height: 55px;
        width: 55px;
    }

    .main-text {
        font-size: 20px;
    }

    .sub-text {
        font-size: 14px;
    }

    .register-container {
        width: calc(100% - 30px);
        max-width: 100%;
        padding: 22px 18px;
        margin: 15px;
    }

    .register-container h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .register-form input,
    .register-form select {
        padding: 10px 10px 10px 34px;
        margin: 8px 0;
        font-size: 14px;
    }

    .input-wrapper {
        margin-bottom: 12px;
    }

    .input-wrapper i {
        font-size: 15px;
        left: 10px;
    }

    .register-form button {
        padding: 11px;
        font-size: 15px;
        margin-top: 6px;
    }

    .login-link {
        margin-top: 16px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 75px;
        padding-bottom: 15px;
    }

    .header-bar {
        padding: 6px 6px;
        height: 70px;
    }

    .header-container {
        gap: 6px;
    }

    .header-left {
        gap: 6px;
    }

    .logo {
        height: 50px;
        width: 50px;
    }

    .main-text {
        font-size: 18px;
    }

    .sub-text {
        font-size: 12px;
    }

    .register-container {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 20px 15px;
        margin: 12px 10px;
    }

    .register-container h2 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .register-form input,
    .register-form select {
        padding: 10px 10px 10px 32px;
        margin: 8px 0;
        font-size: 14px;
    }

    .input-wrapper {
        margin-bottom: 10px;
    }

    .input-wrapper i {
        font-size: 14px;
    }

    .register-form button {
        padding: 10px;
        font-size: 14px;
        margin-top: 5px;
    }

    .login-link {
        margin-top: 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
        padding-bottom: 12px;
    }

    .header-bar {
        padding: 5px 5px;
        height: 60px;
    }

    .header-container {
        gap: 5px;
    }

    .header-left {
        gap: 5px;
    }

    .logo {
        height: 45px;
        width: 45px;
    }

    .main-text {
        font-size: 16px;
    }

    .sub-text {
        font-size: 11px;
    }

    .register-container {
        width: calc(100% - 16px);
        max-width: 100%;
        padding: 18px 12px;
        margin: 8px;
    }

    .register-container h2 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .register-form input,
    .register-form select {
        padding: 9px 9px 9px 30px;
        margin: 7px 0;
        font-size: 13px;
    }

    .input-wrapper {
        margin-bottom: 8px;
    }

    .input-wrapper i {
        font-size: 13px;
        left: 10px;
    }

    .select-wrapper .dropdown-icon {
        font-size: 12px;
    }

    .register-form button {
        padding: 9px;
        font-size: 13px;
        margin-top: 4px;
    }

    .login-link {
        margin-top: 12px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    body {
        padding-top: 60px;
        padding-bottom: 15px;
    }

    .header-bar {
        padding: 4px 4px;
        height: 55px;
    }

    .logo {
        height: 40px;
        width: 40px;
    }

    .main-text {
        font-size: 14px;
    }

    .sub-text {
        font-size: 10px;
    }

    .register-container {
        width: calc(100% - 12px);
        padding: 25px 20px;
        margin: 6px;
        margin-top: 60px;
    }

    .register-container h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .register-form input,
    .register-form select {
        padding: 8px 8px 8px 28px;
        margin: 6px 0;
        font-size: 12px;
    }

    .input-wrapper {
        margin-bottom: 6px;
    }

    .input-wrapper i {
        font-size: 12px;
    }

    .register-form button {
        padding: 8px;
        font-size: 12px;
        margin-top: 3px;
    }

    .login-link {
        margin-top: 10px;
        font-size: 10px;
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: 45px;
        padding-bottom: 10px;
    }

    .header-bar {
        padding: 4px 8px;
        height: 40px;
    }

    .logo {
        height: 35px;
        width: 35px;
    }

    .main-text {
        font-size: 14px;
    }

    .sub-text {
        font-size: 9px;
    }

    .register-container {
        padding: 15px 12px;
        max-width: 450px;
    }

    .register-container h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .register-form input,
    .register-form select {
        padding: 8px;
        margin: 5px 0;
        font-size: 13px;
    }

    .input-wrapper {
        margin-bottom: 6px;
    }

    .register-form button {
        padding: 8px;
        font-size: 13px;
    }

    .login-link {
        margin-top: 8px;
        font-size: 11px;
    }
}
