/* Modern Login Form Styles - Compatible with both old and new designs */

/* Local Icon System */
.local-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Icon URLs will be added dynamically by PHP */

/* Legacy styles for backward compatibility */
.animate__animated.animate__fadeInDown {
    animation: fadeInDown 0.7s both;
}
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* WOWDASH login card and button modern style */
.wowdash-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    padding: 36px 32px 28px 32px;
}
.wowdash-btn {
    background: linear-gradient(90deg,#0073aa,#005a87);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,115,170,0.10);
    transition: background 0.2s, color 0.2s;
}
.wowdash-btn:hover, .wowdash-btn:focus {
    background: linear-gradient(90deg,#005a87,#0073aa);
    color: #fff;
}
.input-group-text {
    font-size: 1.2rem;
    color: #0073aa;
    background: #f6fafd;
    border-radius: 8px 0 0 8px !important;
    border: none;
}
.form-control:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.10);
}

/* New Tailwind-compatible message styles */
.mcl-message {
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.mcl-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mcl-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mcl-info {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Hide class utility */
.hidden {
    display: none !important;
}
/* User preview cards with icons */
.mcl-user-preview-row {
    margin-bottom: 0.5rem;
}
.mcl-user-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.1rem 1.3rem;
    margin-bottom: 0.5rem;
    min-height: 70px;
    transition: box-shadow 0.2s;
}
.mcl-user-preview-card:hover {
    box-shadow: 0 4px 16px rgba(0,115,170,0.13);
}
.mcl-user-icon {
    font-size: 2rem;
    color: #0073aa;
    flex-shrink: 0;
}
.mcl-user-label {
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 2px;
}
.mcl-user-value {
    font-size: 1.15rem;
    color: #222;
    font-weight: 600;
    word-break: break-word;
}
@media (max-width: 991px) {
    .mcl-user-preview-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .mcl-user-icon { font-size: 1.5rem; }
    .mcl-user-value { font-size: 1rem; }
}
@media (max-width: 600px) {
    .mcl-user-preview-card { padding: 0.8rem 0.7rem; }
    .mcl-user-label { font-size: 0.9rem; }
    .mcl-user-value { font-size: 0.98rem; }
}
/* Logout button hover effect for dashboard */
.mcl-logout-efx:hover, .mcl-logout-efx:focus {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
    box-shadow: 0 4px 16px rgba(220,53,69,0.10);
}
/* My Custom Login Plugin Styles */

.mcl-login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mcl-login-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.mcl-form-group {
    margin-bottom: 15px;
}

.mcl-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.mcl-form-group input[type="text"],
.mcl-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.mcl-form-group input[type="text"]:focus,
.mcl-form-group input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.mcl-login-btn {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mcl-login-btn:hover {
    background-color: #005a87;
}

.mcl-login-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.mcl-logged-in {
    text-align: center;
    padding: 20px;
    background: #f0f9ff;
    border: 1px solid #0073aa;
    border-radius: 6px;
    margin: 20px 0;
}

.mcl-logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.mcl-logout-btn:hover {
    background-color: #c82333;
}

/* Dashboard Styles */
.mcl-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mcl-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.mcl-dashboard-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.mcl-info-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.mcl-info-section h3 {
    margin: 0 0 20px 0;
    color: #0073aa;
    font-size: 20px;
}

.mcl-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.mcl-info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

.mcl-info-item label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.mcl-info-item span {
    color: #333;
    font-size: 16px;
    word-break: break-word;
}

.mcl-amount {
    font-weight: 600;
    color: #28a745;
    font-size: 18px;
}

/* Message Styles */
.mcl-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.mcl-message.mcl-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mcl-message.mcl-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mcl-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.mcl-error a {
    color: #721c24;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mcl-login-container,
    .mcl-dashboard {
        margin: 10px;
        padding: 15px;
    }
    
    .mcl-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mcl-info-grid {
        grid-template-columns: 1fr;
    }
    
    .mcl-dashboard-header h2 {
        font-size: 24px;
    }
}
