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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    color: #131313;
    background: #1d2127;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background-color: #111317;
    color: #e0e0e0;
}

a { text-decoration: none; outline: none; color: #acacac; }

h1, h2 {
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 26px;
    margin-left: 15px;
    margin-top: 15px;
}

.status-bar-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: #1d2127;
    z-index: 9999;
}

button {
    background: #393f51;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0px;
    margin-bottom: 0px;
}

.button:active {
    background: #3e4559;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        background: #3e4559;
    }
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-color: #111317;
}

.login-card {
    background-color: #1d2127;
    padding: 40px 40px 28px 40px;
    border-radius: 26px;
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card h2 {
    color: #e0e0e0;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: left;
}

.input-group {
    position: relative;
    margin-bottom: 4px;
    text-align: left;
}

.input-group input {
    width: 100%;
    background-color: #2b3038;
    border: 1px solid transparent;
    padding: 15px 45px 15px 45px;
    border-radius: 15px;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
}

.input-group input:focus {
    border-color: #757575;
}

.input-group.invalid input {
    border-color: #ff6b6b;
}

.input-group .icon-left {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 20px;
    height: 20px;
    fill: #838384;
    pointer-events: none;
}

.input-group .icon-eye {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 22px;
    height: 22px;
    fill: #838384;
    cursor: pointer;
    transition: 0.2s;
}

.input-group .icon-eye:hover { fill: #e0e0e0; }

.msg-placeholder {
    height: 20px;
    width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    padding-left: 2px;
}

.validation-text {
    color: #ff6b6b;
    font-size: 13px;
    display: none;
    line-height: 1.2;
}

.helper-link {
    color: #5686fe;
    text-decoration: none;
    line-height: 1.2;
    display: block;
}

.helper-link:hover { text-decoration: none; }

.input-group.invalid + .msg-placeholder .validation-text { display: block; }
.input-group.invalid + .msg-placeholder .helper-link { display: none; }

.remember-row {
    margin-bottom: 25px;
    display: flex;
    font-size: 14px;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #2b3038;
    border-radius: 4px;
    transition: 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #5686fe;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-submit-btn {
    width: 100%;
    margin-bottom: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.global-error-placeholder {
    height: 40px;
    width: 100%;
    margin: 0px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.alert-text {
    color: #ff9800;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.alert-icon {
    width: 20px;
    height: 20px;
    fill: #ff9800;
    flex-shrink: 0;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.preload-transitions * {
    transition: none !important;
}
