
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap');

:root {
    --brand-bg-accent: rgba(0, 0, 0, 0.00);
    --brand-primary: #008A00;
    --brand-primary-10: rgba(0, 138, 0, 0.10);
    --brand-primary-15: rgba(0, 138, 0, 0.15);
    --brand-text: #252525;
    --brand-muted: #5C5C5C;
    --field-border: #DEDEDE;
    --btn-enabled-bg: var(--brand-primary);
    --btn-enabled-shadow: rgba(0, 138, 0, 0.2);
    --link-color: var(--brand-primary);
    --focus-outline: var(--brand-primary);
}

/* Reset and base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: sans-serif, sans-serif;
    background: #FFFFFF;
    color: var(--brand-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and background accent */
#container { position: relative; width: 100%; min-height: 100vh; background: #FFFFFF; }
#container::before {
    content: '';
    position: fixed; top: 0; right: 0;
    width: 62.5%; height: 100vh;
    background: var(--brand-bg-accent);
    clip-path: polygon(100% 100%, 100% 0%, 0% 0%);
    pointer-events: none;
}

/* Title / logo */
#title { position: relative; left: 50%; transform: translateX(-50%); z-index: 10; }
#bank-logo1, #bank-logo2 { width: 98px; height: 88px; display: block; }

/* Content and box */
#content {
    position: relative; padding: 0; margin: 0; min-height: 100vh;
    display: flex; align-items: center; justify-content: flex-start; padding-left: 12%;
}
#login-box { width: 375px; background: transparent; padding: 0; margin-top: -80px; animation: fadeIn 0.6s ease-out; }

form { display: flex; flex-direction: column; gap: 30px; width: 100%; }

/* Headings */
#login-box h1 {
    font-weight: 700; font-size: 24px; line-height: 30px; color: var(--brand-text);
    margin: 0 0 8px 0;
}

/* Rows */
.content-row, .content-row-error { display: flex; flex-direction: column; gap: 12px; }
.content-row { margin-top: 20px; margin-bottom: 10px; }
.content-row:last-child { margin-bottom: 0; }
.content-row .left {
    font-weight: 400; font-size: 14px; line-height: 20px; color: var(--brand-muted); margin-bottom: 5px;
}
.login-right { display: block; width: 100%; }

/* Inputs */
input[type="text"], input[type="password"] {
    width: 100%; height: 40px; padding: 10px 15px; background: #FFFFFF;
    border: 1px solid var(--field-border); border-radius: 2px;
    font-size: 14px; line-height: 20px; color: var(--brand-text);
    transition: all 0.2s ease;
}
input[type="text"]:hover, input[type="password"]:hover { border-color: var(--brand-primary); }
input[type="text"]:focus, input[type="password"]:focus {
    outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 2px var(--brand-primary-10);
}

/* Buttons */
input[type="submit"], .button {
    width: 100%; height: 50px; background: var(--btn-enabled-bg);
    border: none; border-radius: 8px;
    font-weight: 700; font-size: 16px; line-height: 20px; color: #FFFFFF;
    cursor: not-allowed; transition: all 0.2s ease;
}
.inverted-btn {
    color: var(--btn-enabled-bg) !important;
    background-color: #FFFFFF !important;
    border: .5px solid var(--btn-enabled-bg) !important;
}
input[type="submit"]:disabled, .button:disabled {
    background: #EFEFEF !important; color: #BEBEBE !important; cursor: not-allowed !important;
    opacity: 0.6; box-shadow: none !important; transform: none !important;
}

/* Enabled hover/active driven by tokens */
input[type="submit"]:not(:disabled):hover, .button:not(:disabled):hover {
    background: var(--brand-primary); color: #FFFFFF; cursor: pointer; transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--btn-enabled-shadow);
}
input[type="submit"]:not(:disabled):active, .button:not(:disabled):active {
    transform: translateY(0); box-shadow: 0 2px 4px var(--btn-enabled-shadow);
}

/* Links */
.right a, a[href*="LostPassword"] {
    font-weight: 400; font-size: 16px; line-height: 25px; color: var(--link-color);
    text-decoration: none; text-align: center; display: block; transition: all 0.2s ease;
}
.right a:hover, a[href*="LostPassword"]:hover { color: var(--link-color); text-decoration: underline; }

/* Messages, states */
.left span { font-size: 12px; color: var(--brand-muted); margin-bottom: 15px; display: block; }
.error input[type="text"], .error input[type="password"] { border-color: #ff4444; background-color: #fff5f5; }
.error-message { color: #ff4444; font-size: 12px; margin-top: 5px; }
.success input[type="text"], .success input[type="password"] { border-color: var(--brand-primary); background-color: #f5fff5; }
.loading input[type="submit"], .loading .button { background: #EFEFEF; color: #BEBEBE; cursor: wait; }
.loading input[type="submit"]::after, .loading .button::after {
    content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid transparent;
    border-top: 2px solid #BEBEBE; border-radius: 50%; animation: spin 1s linear infinite; margin-left: 10px;
}

/* Focus visibility */
input[type="text"]:focus-visible,
input[type="password"]:focus-visible,
input[type="submit"]:focus-visible,
.button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #container::before { display: none; }
    #content { padding: 20px; justify-content: center; }
    #login-box { width: 100%; max-width: 375px; margin-top: 0; }
    #title { position: static; transform: none; text-align: center; margin-bottom: 40px; }
}
@media screen and (max-width: 480px) {
    #login-box { width: 100%; padding: 0 10px; }
    input[type="text"], input[type="password"], input[type="submit"], .button { font-size: 16px; }
}

/* Accessibility and animations */
@media (prefers-contrast: more) {
    input[type="text"], input[type="password"] { border-width: 2px; }
    input[type="submit"]:not(:disabled):hover, .button:not(:disabled):hover { background: #000000; color: #FFFFFF; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.mandatory {
    font-weight: bolder !important;
}

#submitBtn {
    background-color: var(--brand-primary-home);
}

#submitBtn
 :hover {
    background-color: var(--brand-primary-home);
}

.marketing-logo-container {
    display: flex;
    padding: 30px;
    height: 68vh;
    align-items: center;
    gap: 30px;
    margin-left: 30px;
}