:root {
    --color-primary:      #00315D;
    --color-secondary:    #225BA3;
    --color-accent:       #6E9BC9;
    --color-bg-panel:     #E8EFF6;
    --color-card-bg:      #FFFFFF;
    --color-card-border:  #DADADA;
    --color-input-border: #00315D;
    --color-placeholder:  #C8C8C8;
    --color-label:        #58595B;
    --color-overlay:      rgba(0, 49, 93, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg-panel);
    min-height: 100vh;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.left-panel {
    flex: 0 0 67%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-panel);
    padding: 60px 40px 24px;
    position: relative;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    flex: 0 0 33%;
    position: relative;
    overflow: hidden;
    border-radius: 50px 0 0 0;
}

.right-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.right-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
    border-radius: 50px 0 0 0;
}

/* ===== DOT DECORATION ===== */
.dot-decoration {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 112px;
    height: 96px;
    background-image: radial-gradient(circle, var(--color-accent) 2px, transparent 2px);
    background-size: 16px 16px;
    pointer-events: none;
    opacity: 0.8;
}

/* ===== LOGO ===== */
.logo-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.logo-wrap img {
    height: 65px;
    width: auto;
    border: none;
}

/* ===== HEADINGS ===== */
.welcome-heading {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
}

.welcome-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 32px;
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    width: 388px;
    padding: 32px;
    margin-bottom: 24px;
}

/* ===== FIELD GROUPS ===== */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-label);
    margin-bottom: 8px;
}

.field-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 15px 25px;
    border: 1px solid var(--color-input-border);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--color-primary);
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
    color: var(--color-placeholder);
    font-weight: 400;
}

.field-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(34, 91, 163, 0.2);
}

/* ===== REMEMBER ME ===== */
.remember-row {
    margin-bottom: 20px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-label);
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-secondary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* ===== LOGIN BUTTON ===== */
.btn-login {
    display: block;
    width: 100%;
    height: 51px;
    background: var(--color-secondary);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 16px;
}

.btn-login:hover {
    background: var(--color-primary);
}

.btn-login:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ===== LOGIN HELP ===== */
.login-help-row {
    text-align: right;
}

.login-help-row a {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.login-help-row a:hover {
    color: var(--color-primary);
}

/* ===== SERVICE PROVIDER ===== */
.service-provider-row {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
}

.service-provider-row a {
    color: var(--color-primary);
    text-decoration: underline;
}

.service-provider-row a:hover {
    color: var(--color-secondary);
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
    color: #c0392b;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.page-footer {
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    padding-top: 24px;
}

.page-footer a {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-footer a:hover {
    color: var(--color-secondary);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 15vh auto;
    padding: 24px 24px 20px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.loginFailModalText {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== LOGIN FAIL MODAL ===== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#close-modal-icon button {
    border: none;
    background-color: transparent;
    position: static;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: #333333;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #000000;
}

.modal-body {
    padding: 0 0 20px;
}

.modal-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-label);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-btn-secondary {
    display: inline-block;
    padding: 9px 18px;
    background: #eeeeee;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.modal-btn-secondary:hover {
    background: #dddddd;
}

.modal-btn-primary,
.modal-btn-primary.loginFailModalTextLink {
    display: inline-block;
    background: var(--color-secondary);
    border: none;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.modal-btn-primary:hover,
.modal-btn-primary.loginFailModalTextLink:hover {
    background: var(--color-primary);
    color: #ffffff;
}