/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-image: url('https://my.cfg.bank/images/fi-assets/cfg-bank/cfg-bank-background-landscape-ee944ab7.png');
    background-size: cover;
    background-position: center;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.login-container {
    background-color: #1c1c1c;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
    color: #ffffff;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.bank-logo {
    height: 60px;
    width: auto;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Labels removed, using placeholders instead */

.input-group {
    position: relative;
    display: flex;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #333;
    background-color: #1c1c1c;
    border-radius: 5px;
    font-size: 16px;
    color: #ffffff;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #f7e018;
}

.switch-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #f7e018;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.toggle-password img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-link {
    color: #f7e018;
    text-decoration: none;
    font-size: 14px;
}

.auth-options {
    margin-top: 20px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.passkey-btn {
    background-color: transparent;
    border: none;
    color: #f7e018;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
    justify-content: flex-start;
}

.fingerprint-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    fill: #f7e018 !important;
    vertical-align: middle;
    color: #f7e018;
}

.sign-in-btn {
    background-color: #f7e018;
    border: none;
    color: #1c1c1c;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: none;
    white-space: nowrap;
    min-width: 110px;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin: 20px auto 0;
    max-width: 400px;
}

.footer-info {
    font-size: 12px;
    line-height: 1.8;
    color: #f0f0f0;
    text-align: center;
    width: 100%;
}

.footer-info a {
    color: #f7e018;
    text-decoration: none;
}

.equal-housing {
    position: relative;
    padding-left: 5px;
}

/* Error message */
.error-message {
    background-color: #ff3333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
    
    .bank-logo {
        height: 50px;
    }
}

/* Eye icon for password toggle */
#passwordToggle {
    color: #888;
    fill: currentColor;
}
