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

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Header styles */
header {
    background-color: #003366;
    margin: 0 0 20px 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.bank-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
}

/* Main content */
main {
    background: white;
    padding: 0;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #003366;
    margin: 0 0 20px 0;
    padding: 0 20px;
    font-weight: 400;
    font-size: 22px;
}

.security-notice {
    background-color: #f8f8f8;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    font-size: 12px;
    color: #333;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #333;
    font-size: 13px;
}

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

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    height: 40px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 1px #8B4513;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0066cc;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
}

/* Checkbox styles */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
}

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

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e6e6e6;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #003366;
}

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

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

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    position: relative;
    top: -2px;
}

/* Form options */
.form-options {
    padding: 0 20px;
    margin: 15px 0 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

.checkmark {
    position: absolute;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #8B4513;
    border-color: #8B4513;
}

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

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

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Button styles */
.form-actions {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background-color: #8B4513; /* Brown color for the login button */
    color: white;
    border: none;
    padding: 0 15px;
    height: 36px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.btn-login:hover {
    background-color: #733d10;
}

.forgot-password {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #003366;
    color: white;
    padding: 20px;
    margin-top: 40px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    text-align: center;
    color: #a0b3d6;
    font-size: 12px;
    line-height: 1.5;
}

.footer-info p {
    margin: 5px 0;
}

.copyright {
    color: #a0b3d6;
    font-size: 12px;
    margin-top: 10px;
}

/* Messages */
.error-message,
.info-message {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.info-message {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

.error-message .icon,
.info-message .icon {
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 2px;
}

.error-message span,
.info-message span {
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
