* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.login-card {
    width: min(100%, 500px);
    background: #ffffff;
    padding: 38px 40px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* System name is hidden - logo only */
.login-card h1,
.system-subtitle {
    display: none;
}

.login-card h2 {
    text-align: center;
    color: #222;
    font-size: 25px;
    margin-bottom: 7px;
}

.login-description {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.form-group label span {
    color: #e53935;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d5dbe5;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #2867d8;
    box-shadow: 0 0 0 3px rgba(40, 103, 216, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {

    position: absolute;

    top: 50%;

    right: 12px;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none;

    background: transparent;

    cursor: pointer;

    color: #777;

    font-size: 15px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 4px 0 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.remember-me input {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.login-options a,
.signup-link a {
    color: #2867d8;
    text-decoration: none;
    font-weight: 600;
}

.login-options a:hover,
.signup-link a:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(
        90deg,
        #22b8f0 0%,
        #6d63e8 50%,
        #d52bd4 100%
    );
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    box-shadow: 0 6px 18px rgba(120, 70, 220, 0.25);
    transform: translateY(-1px);
}

.login-button:active {
    transform: scale(0.99);
}

.error-message {
    background: #fff0f0;
    border: 1px solid #f2b8b8;
    color: #c62828;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.signup-link {
    text-align: center;
    margin-top: 23px;
    color: #777;
    font-size: 14px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

    .login-page {
        padding: 24px 16px;
    }

    .login-card {
        padding: 32px 28px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 480px) {

    .login-page {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .login-logo {
        width: 75px;
    }

    .system-subtitle {
        font-size: 13px;
        margin-bottom: 27px;
    }

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

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #2867d8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-home:hover {
    color: #1749a5;
    text-decoration: underline;
}


/* CUSTOMER LOGIN FIELD VALIDATION */

.form-group input.is-invalid {
    border: 1px solid #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.form-group input.is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}
