
a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.split-login-container {
    width: 700px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Login section */
.split-login-section {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5rem !important;
}

.split-login-holder {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

@media (min-width: 992px) {
    .split-login-holder {
        flex-direction: row;
        /*max-height: 600px;*/
    }
}

/* Left side image */
.split-login-thumb {
    flex: 1;
    overflow: hidden;
    display: none;
    position: relative;
}

.split-login-thumb img {
    width: 100%;
    object-fit: cover;
    padding: 100px;
}

.split-login-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(to right, rgba(253, 173, 0, 0.2), transparent);*/
}

@media (min-width: 992px) {
    .split-login-thumb {
        display: block;
    }
}

/* Right side form container */
.split-login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-login-wrapper {
    padding: 20px;
}

@media (min-width: 768px) {
    .split-login-wrapper {
        padding: 40px;
    }
}

/* Login card */
.split-login-card {
    width: 100%;
}

/* Login tabs */
.split-login-tabs {
    display: flex;
    margin-bottom: 30px;
}

.split-tab {
    padding: 10px 0;
    margin-right: 20px;
    font-weight: 600;
    font-size: 16px;
    color: #777;
    position: relative;
    transition: color 0.3s ease;
}

.split-tab:hover {
    color: #fdad00;
}

.split-tab-active {
    color: #fdad00;
}

.split-tab-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fdad00;
}

/* Title */
.split-title-container {
    text-align: center;
    margin-bottom: 30px;
}

.split-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.split-title-border {
    display: flex;
    justify-content: center;
}

.split-title-border span {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #fdad00;
}

/* Form */
.split-form {
    margin-top: 20px;
}

/* Form-level error message */
.split-form-error {
    margin-bottom: 20px;
    border: 1px solid #f8d7da;
    border-radius: 4px;
    background-color: #fff5f5;
    padding: 12px;
}

.split-form-error-content {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #dc3545;
}

.split-error-icon {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Input fields */
.split-input-group {
    margin-bottom: 20px;
}

.split-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.split-input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Padding for left icon */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.split-input:focus {
    outline: none;
    border-color: #fdad00;
    box-shadow: 0 0 0 3px rgba(253, 173, 0, 0.1);
}

.split-input-icon {
    position: absolute;
    left: 15px;
    color: #fdad00;
    font-size: 16px;
}

/* Error state for inputs */
.split-input-error .split-input,
.split-input-has-error {
    border-color: #dc3545;
    background-color: #fff5f5;
    padding-right: 40px; /* Space for error icon */
}

.split-input-error .split-input:focus,
.split-input-has-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.split-input-error-icon {
    position: absolute;
    right: 15px;
    color: #dc3545;
    font-size: 16px;
}

.split-password-error-icon {
    right: 40px; /* Adjust for password toggle button */
}

/* Field-level error message */
.split-field-error {
    margin-top: 8px;
    padding: 6px 10px;
    background-color: #fff5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #dc3545;
    display: flex;
    align-items: center;
}

.split-field-error-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* Password toggle */
.split-toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    z-index: 2; /* Ensure the button is clickable */
    transition: color 0.2s ease;
}

.split-toggle-password:hover {
    color: #fdad00;
}

.split-toggle-password:focus {
    outline: none;
    color: #fdad00;
}

/* Remember me checkbox */
.split-remember-me {
    margin-bottom: 20px;
}

.split-checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.split-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.split-checkbox-checkmark {
    position: relative;
    display: inline-block;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
}

.split-checkbox-container:hover input ~ .split-checkbox-checkmark {
    border-color: #ccc;
}

.split-checkbox-container input:checked ~ .split-checkbox-checkmark {
    background-color: #fdad00;
    border-color: #fdad00;
}

.split-checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.split-checkbox-container input:checked ~ .split-checkbox-checkmark:after {
    display: block;
}

.split-checkbox-container .split-checkbox-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Button container */
.split-button-container {
    margin-bottom: 20px;
}

/* Login Button */
.split-login-button {
    width: 100%;
    padding: 12px;
    background-color: #6b5d4e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.split-login-button:hover {
    background-color: #fdad00;
}

.split-login-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 93, 78, 0.3);
}

.split-button-loader {
    display: none;
}

.split-loading .split-button-text {
    display: none;
}

.split-loading .split-button-loader {
    display: inline-block;
}

/* Links */
.split-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 576px) {
    .split-links-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.split-link {
    color: #fdad00;
    font-size: 14px;
    transition: color 0.3s ease;
}

.split-link:hover {
    text-decoration: underline;
}

/* Avatar at center */
.split-avatar-container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
}

@media (min-width: 992px) {
    .split-avatar-container {
        display: block;
    }
}

.split-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.split-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Enhanced password toggle button styles */
.split-toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.split-toggle-password:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Enhanced loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.split-button-loader .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Disabled button state */
.split-login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}/* Avatar styling with Font Awesome icon */
.split-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #f8f8f8; /* Light background to ensure no transparency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-avatar-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6b5d4e; /* Match the button color */
}

.split-avatar-icon {
    font-size: 60px;
    color: white;
}

/* Alternative icon options */
.split-avatar-icon.fa-user-lock,
.split-avatar-icon.fa-user-shield {
    font-size: 50px; /* Slightly smaller for more complex icons */
}
/*
 * CPMS Login Styles
 * Matching the new design while preserving functionality
 */



/* Header styles */
.cpms-header {
    background-color: #449d44;
    color: white;
    padding: 2rem 1rem 3rem;
    position: relative;
    text-align: center;
}

.cpms-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.cpms-header-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.cpms-header-description {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.cpms-wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Login section */
.cpms-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 20px;
}

.cpms-login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Logo and system name */
.cpms-logo-container {
    margin-bottom: 10px;
}

.cpms-logo {
    width: 150px;
    /*height: 80px;*/
    /*border-radius: 50%;*/
    /*background-color: #e6f7f5;*/
}

/* Login card */
.cpms-login-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.cpms-login-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    text-align: center;
}

.cpms-login-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Form-level error message - Style 4 */
.cpms-form-error {
    margin-bottom: 20px;
    border: 1px solid #f8d7da;
    border-radius: 4px;
    background-color: #fff5f5;
    padding: 12px;
}

.cpms-form-error-content {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #dc3545;
}

.cpms-error-icon {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Input fields */
.cpms-input-group {
    margin-bottom: 20px;
}

.cpms-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.cpms-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cpms-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cpms-input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Padding for left icon */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.cpms-input:focus {
    outline: none;
    border-color: #449d44;
    box-shadow: 0 0 0 2px rgba(68, 157, 68, 0.1);
}

/* Error state for inputs - Style 4 */
.cpms-input-error .cpms-input,
.cpms-input-has-error {
    border-color: #dc3545;
    background-color: #fff5f5;
    padding-right: 40px; /* Space for error icon */
}

.cpms-input-error .cpms-input:focus,
.cpms-input-has-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.cpms-input-error-icon {
    position: absolute;
    right: 15px;
    color: #dc3545;
    font-size: 16px;
}

.cpms-password-error-icon {
    right: 40px; /* Adjust for password toggle button */
}

/* Field-level error message - Style 4 */
.cpms-field-error {
    margin-top: 8px;
    padding: 6px 10px;
    background-color: #fff5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #dc3545;
    display: flex;
    align-items: center;
}

.cpms-field-error-icon {
    margin-right: 6px;
    font-size: 14px;
}

.cpms-input-icon {
    position: absolute;
    left: 15px;
    color: #888;
    font-size: 14px;
}

/* Password toggle */
.cpms-toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.cpms-toggle-password:focus {
    outline: none;
    color: #449d44;
}

/* Forgot password */
.cpms-forgot-password {
    color: #449d44;
    font-size: 14px;
    text-decoration: none;
}

.cpms-forgot-password:hover {
    text-decoration: underline;
}

/* Login button */
.cpms-login-button {
    width: 100%;
    padding: 12px;
    background-color: #449d44;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 20px;
}

.cpms-login-button:hover {
    background-color: #fdad00;
}

.cpms-button-loader {
    display: none;
}

.cpms-loading .cpms-button-text {
    display: none;
}

.cpms-loading .cpms-button-loader {
    display: inline-block;
}

/* Links container */
.cpms-links-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Footer */
.cpms-footer {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    text-align: center;
}

.cpms-footer p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cpms-login-card {
        padding: 20px;
    }

    .cpms-header {
        padding: 1.5rem 1rem 2.5rem;
    }

    .cpms-header-title {
        font-size: 20px;
    }

    .cpms-header-description {
        font-size: 14px;
    }
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}