/* ==========================================================================
   login.css - Santoshi RCM Login Page Styles
   ========================================================================== */

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wa-bg-body, #efeae2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--wa-text-main, #111b21);
    position: relative;
    overflow-x: hidden;
}

/* Background Top Banner (WhatsApp Web style) */
body.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background-color: var(--wa-primary, #00a884);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    padding: 36px 32px 28px;
    box-sizing: border-box;
}

/* Brand Header */
.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(0, 168, 132, 0.12);
    color: var(--wa-primary, #00a884);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--wa-primary, #00a884);
}

.login-brand p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #667781;
}

/* Alert Banner */
.login-error {
    background-color: #ffebe9;
    border: 1px solid #ff8182;
    color: #cf222e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Styles */
.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111b21;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg.field-icon {
    position: absolute;
    left: 12px;
    color: #8696a0;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px 11px 40px;
    font-size: 14px;
    border: 1px solid #d1d7db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111b21;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #8696a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #111b21;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #00a884;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-login:hover {
    background-color: #008f6f;
}

.btn-login:active {
    transform: scale(0.99);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer Copyright */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #667781;
}
