/* Remastered CIBC Stylesheet - Exact Match */
:root {
    --primary-color: #c41f3e;
    --primary-light: #ea9b9b;
    --text-color: #4a4a4a;
    --border-color: #dadce0;
    --bg-color: #f7f7f7;
    --link-color: #c41f3e;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon fill="%23f0f0f0" points="0,0 50,50 0,100"/></svg>');
    background-size: 200px;
    background-repeat: repeat-y;
    background-position: left top, right top;
}

.header {
    background-color: var(--primary-color);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.header img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.main-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 5%;
    margin-top: 20px;
}

.content-box {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.left-panel {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.left-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-panel {
    flex: 1;
    padding: 60px 50px;
    box-sizing: border-box;
}

h1 {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.3;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    height: 42px; /* Explicit height to ensure consistency across input types */
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #999;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-light);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
}

.btn-primary:not(:disabled) {
    background-color: var(--primary-color);
}

.btn-primary:disabled {
    cursor: not-allowed;
}

.checkbox-group {
    margin-top: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.checkbox-group input {
    margin-right: 8px;
}

.links {
    margin-top: 30px;
    font-size: 14px;
}

.links a {
    color: var(--link-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

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

.alert-danger {
    background-color: #fff;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .content-box {
        flex-direction: column;
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        padding: 30px 20px;
    }
}
