/* Base Login Form Styles */
.clf-login-wrapper {
    margin: 20px auto;
    font-family: inherit;
    width: 100%;
}

.clf-login-form {
    padding: 40px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.clf-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.clf-input {
    width: 100%;
    border: 1px solid #dcdcde;
    font-size: 17px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

.clf-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.clf-remember {
    display: flex;
    align-items: center;
    margin: 16px 0 24px 0;
    font-size: 14px;
    color: #646970;
    font-weight: normal;
}

.clf-remember input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
    cursor: pointer;
}

.clf-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.clf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clf-submit:active {
    transform: translateY(0);
}

.clf-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.clf-links a {
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

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

.clf-logged-in-message {
    text-align: center;
    padding: 20px;
    background: #d1f0d1;
    border: 1px solid #6ac46a;
    border-radius: 4px;
    color: #155724;
    font-weight: 500;
}

/* Modern Style */
.clf-style-modern .clf-login-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.clf-style-modern .clf-input {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
}

.clf-style-modern .clf-input:focus {
    border-color: #0073aa;
    background: #fff;
}

.clf-style-modern .clf-submit {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%) !important;
    border-radius: 6px;
    color: #fff;
}

.clf-style-modern .clf-submit:hover {
    background: linear-gradient(135deg, #005177 0%, #003d5c 100%) !important;
}

/* Minimal Style */
.clf-style-minimal .clf-login-form {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 20px 0;
}

.clf-style-minimal .clf-input {
    border: none;
    border-bottom: 2px solid #dcdcde;
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
}

.clf-style-minimal .clf-input:focus {
    border-bottom-color: #0073aa;
    box-shadow: none;
}

.clf-style-minimal .clf-submit {
    background: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
    border-radius: 4px;
}

.clf-style-minimal .clf-submit:hover {
    background: #0073aa;
    color: #fff;
}

.clf-style-minimal .clf-links {
    border-top: none;
}

/* Classic Style */
.clf-style-classic .clf-login-form {
    background: #f9f9f9;
    border: 2px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.clf-style-classic .clf-input {
    border: 1px solid #aaa;
    background: #fff;
    border-radius: 3px;
    padding: 10px 12px;
}

.clf-style-classic .clf-input:focus {
    border-color: #555;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.clf-style-classic .clf-submit {
    background: #555;
    border-radius: 3px;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
}

.clf-style-classic .clf-submit:hover {
    background: #333;
}

/* Elegant Style */
.clf-style-elegant .clf-login-form {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    border: 1px solid #d4d4d4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.clf-style-elegant .clf-input {
    border: 1px solid #e5e5e5;
    background: #fafafa;
    border-radius: 8px;
    padding: 14px 18px;
    transition: all 0.3s ease;
}

.clf-style-elegant .clf-input:focus {
    border-color: #8b7355;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.1);
}

.clf-style-elegant .clf-submit {
    background: linear-gradient(135deg, #8b7355 0%, #6b5644 100%);
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 16px 24px;
    color: #fff;
}

.clf-style-elegant .clf-submit:hover {
    background: linear-gradient(135deg, #6b5644 0%, #4a3a2e 100%);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.clf-style-elegant .clf-links a {
    color: #8b7355;
}

/* Bold Style */
.clf-style-bold .clf-login-form {
    background: #1a1a1a;
    border: 3px solid #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    border-radius: 0;
}

.clf-style-bold .clf-login-form label {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.clf-style-bold .clf-input {
    border: 2px solid #ff6b6b;
    background: #2a2a2a;
    color: #ffffff;
    border-radius: 0;
    padding: 14px 16px;
    font-weight: 600;
}

.clf-style-bold .clf-input::placeholder {
    color: #999;
}

.clf-style-bold .clf-input:focus {
    border-color: #ff8787;
    background: #333;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.clf-style-bold .clf-submit {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 0;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 16px 24px;
    color: #fff;
}

.clf-style-bold .clf-submit:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #d84545 100%);
    transform: scale(1.02);
}

.clf-style-bold .clf-remember {
    color: #ffffff;
}

.clf-style-bold .clf-links {
    border-top-color: #333;
}

.clf-style-bold .clf-links a {
    color: #ff6b6b;
    font-weight: 600;
}

/* Glassmorphism Style */
.clf-style-glassmorphism .clf-login-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.clf-style-glassmorphism .clf-login-form {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 16px;
}

.clf-style-glassmorphism .clf-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 14px 18px;
    color: #1a1a1a;
}

.clf-style-glassmorphism .clf-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.clf-style-glassmorphism .clf-input:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 115, 170, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.clf-style-glassmorphism .clf-submit {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.8) 0%, rgba(0, 81, 119, 0.9) 100%);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
}

.clf-style-glassmorphism .clf-submit:hover {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.9) 0%, rgba(0, 81, 119, 1) 100%);
    box-shadow: 0 8px 24px rgba(0, 115, 170, 0.3);
}

.clf-style-glassmorphism .clf-links {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.clf-style-glassmorphism .clf-links a {
    color: #0073aa;
    font-weight: 600;
}

/* Neumorphism Style */
.clf-style-neumorphism .clf-login-form {
    background: #e0e5ec;
    border: none;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.clf-style-neumorphism .clf-login-form label {
    color: #4a5568;
}

.clf-style-neumorphism .clf-input {
    background: #e0e5ec;
    border: none;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 14px 18px;
    color: #2d3748;
}

.clf-style-neumorphism .clf-input:focus {
    box-shadow: inset 6px 6px 10px rgba(163, 177, 198, 0.7), inset -6px -6px 10px rgba(255, 255, 255, 0.6);
    outline: none;
}

.clf-style-neumorphism .clf-submit {
    background: #e0e5ec;
    border: none;
    box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.6), -6px -6px 12px rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: #0073aa;
    font-weight: 700;
}

.clf-style-neumorphism .clf-submit:hover {
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.6), -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.clf-style-neumorphism .clf-submit:active {
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.clf-style-neumorphism .clf-remember {
    color: #4a5568;
}

.clf-style-neumorphism .clf-links {
    border-top-color: rgba(163, 177, 198, 0.3);
}

.clf-style-neumorphism .clf-links a {
    color: #0073aa;
}

/* Material Design Style */
.clf-style-material .clf-login-form {
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.clf-style-material .clf-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 12px 0;
    transition: border-color 0.2s ease;
}

.clf-style-material .clf-input:focus {
    border-bottom-color: #6200ea;
    box-shadow: none;
}

.clf-style-material .clf-submit {
    background: #6200ea;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(98, 0, 234, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    padding: 14px 24px;
    color: #fff;
}

.clf-style-material .clf-submit:hover {
    background: #7c4dff;
    box-shadow: 0 4px 8px rgba(98, 0, 234, 0.4);
}

.clf-style-material .clf-submit:active {
    box-shadow: 0 8px 16px rgba(98, 0, 234, 0.5);
}

.clf-style-material .clf-links {
    border-top: none;
}

.clf-style-material .clf-links a {
    color: #6200ea;
    font-weight: 500;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .clf-login-form {
        padding: 30px 20px;
    }

    .clf-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .clf-submit {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Loading State */
.clf-login-form.clf-loading {
    opacity: 0.6;
    pointer-events: none;
}

.clf-login-form.clf-loading .clf-submit:after {
    content: "...";
    animation: clf-dots 1.5s infinite;
}

@keyframes clf-dots {

    0%,
    20% {
        content: ".";
    }

    40% {
        content: "..";
    }

    60%,
    100% {
        content: "...";
    }
}

/* Error Messages */
.clf-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Success Messages */
.clf-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}