* {
    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: center;
    overscroll-behavior: none;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-top: 100px;
}

/* 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;
}

/* login styles */
.login-form {
    background-color: #CFE5EC;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

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

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

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.remember-me label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 14px;
}

.remember-me label:hover {
    transform: scale(1.02);
    color: #0d2a63;
}

.remember-me input[type="checkbox"] {
    accent-color: #1F7AA5;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.forgot-password {
    text-align: center;
}

.forgot-password a {
    color: #3017b0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #0d2a63;
    text-decoration: underline;
}

.login-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: 5px;
}

.login-form button:hover {
    background-color: #0d2a63;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 42, 99, 0.2);
}

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

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

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

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

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 22px;
}

.modal input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal input[type="email"]:focus {
    border-color: #2575fc;
    box-shadow: 0 0 5px rgba(37, 117, 252, 0.3);
}

.modal button {
    background-color: #2575fc;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal button:hover {
    background-color: #1a5cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 92, 216, 0.2);
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .close:hover {
    color: #000;
}

.forgot-message {
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
}

/* =====================
   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;
    }

    .login-form {
        max-width: 380px;
        padding: 28px 23px;
    }

    .login-form h2 {
        font-size: 22px;
    }
}

@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;
    }

    .login-form {
        max-width: 360px;
        padding: 25px 20px;
    }

    .login-form h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

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

    .input-wrapper input {
        padding: 11px 11px 11px 36px;
        font-size: 15px;
    }

    .options {
        gap: 10px;
        margin-bottom: 18px;
    }
}

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

    .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;
    }

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

    .login-form h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

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

    .input-wrapper input {
        padding: 10px 10px 10px 34px;
        font-size: 14px;
    }

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

    .options {
        gap: 9px;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .remember-me label {
        font-size: 13px;
        gap: 6px;
    }

    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .forgot-password a {
        font-size: 13px;
    }

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

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

    .modal-content {
        max-width: 350px;
        padding: 25px;
    }

    .modal h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .modal input[type="email"] {
        padding: 10px;
        font-size: 14px;
    }

    .modal button {
        padding: 11px;
        font-size: 14px;
    }
}

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

    .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;
    }

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

    .login-form h2 {
        font-size: 16px;
        margin-bottom: 14px;
    }

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

    .input-wrapper input {
        padding: 10px 10px 10px 32px;
        font-size: 14px;
    }

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

    .options {
        gap: 8px;
        margin-bottom: 14px;
        font-size: 12px;
    }

    .remember-me label {
        font-size: 12px;
        gap: 5px;
    }

    .remember-me input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

    .forgot-password a {
        font-size: 12px;
    }

    .login-form button {
        padding: 10px;
        font-size: 14px;
    }

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

    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        padding: 20px;
    }

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

    .modal input[type="email"] {
        padding: 9px;
        font-size: 13px;
        margin: 6px 0 12px 0;
    }

    .modal button {
        padding: 10px;
        font-size: 13px;
    }

    .modal .close {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }

    .forgot-message {
        font-size: 12px;
        padding: 8px;
        margin-bottom: 12px;
    }
}

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

    .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;
    }

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

    .login-form h2 {
        font-size: 15px;
        margin-bottom: 12px;
    }

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

    .input-wrapper input {
        padding: 9px 9px 9px 30px;
        font-size: 13px;
    }

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

    .options {
        gap: 7px;
        margin-bottom: 12px;
        font-size: 11px;
    }

    .remember-me label {
        font-size: 11px;
        gap: 5px;
    }

    .remember-me input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .forgot-password a {
        font-size: 11px;
    }

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

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

    .modal {
        padding: 8px;
    }

    .modal-content {
        max-width: 100%;
        padding: 18px;
    }

    .modal h2 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .modal input[type="email"] {
        padding: 8px;
        font-size: 12px;
        margin: 5px 0 10px 0;
    }

    .modal button {
        padding: 9px;
        font-size: 12px;
    }

    .modal .close {
        font-size: 18px;
        width: 26px;
        height: 26px;
    }

    .forgot-message {
        font-size: 11px;
        padding: 6px;
        margin-bottom: 10px;
    }
}

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

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

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

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

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

    .login-form {
        width: calc(100% - 12px);
        padding: 40px 20px;
        margin: 6px;
    }

    .login-form h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }

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

    .input-wrapper input {
        padding: 8px 8px 8px 28px;
        font-size: 12px;
    }

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

    .options {
        gap: 6px;
        margin-bottom: 10px;
        font-size: 10px;
    }

    .remember-me label {
        font-size: 10px;
    }

    .remember-me input[type="checkbox"] {
        width: 13px;
        height: 13px;
    }

    .forgot-password a {
        font-size: 10px;
    }

    .login-form button {
        padding: 8px;
        font-size: 12px;
    }

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

    .modal-content {
        padding: 15px;
    }

    .modal h2 {
        font-size: 14px;
    }

    .modal input[type="email"] {
        padding: 7px;
        font-size: 11px;
    }

    .modal button {
        padding: 8px;
        font-size: 11px;
    }

    .modal .close {
        font-size: 16px;
        width: 24px;
        height: 24px;
    }

    .forgot-message {
        font-size: 10px;
    }
}

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

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

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

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

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

    .login-form {
        padding: 15px 12px;
        max-width: 400px;
    }

    .login-form h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

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

    .input-wrapper input {
        padding: 8px;
        font-size: 13px;
    }

    .options {
        margin-bottom: 10px;
        font-size: 11px;
    }

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

    .modal-content {
        padding: 15px;
        max-height: 70vh;
    }

    .modal h2 {
        font-size: 14px;
    }

    .modal input[type="email"] {
        padding: 8px;
        font-size: 12px;
    }

    .modal button {
        padding: 8px;
        font-size: 12px;
    }
}